Jump to content

Unpickable plane with pickable controls


Dreik
 Share

Recommended Posts

So I am working on cube view and I've encountered problem I can't solve. If you look at the screen I'm creating 4 arrows on GUI, these are created on Plane that is attached to camera watching the cube. The problem is if plane is pickable I can't press on cube. But If plane is unpickable these arrows (buttons) aren't pickable. So I'd like to make them pickable but trun off plane pickability. Is that possible?cubeView.thumb.png.0e6eb3b5016a5f32ec96e70a9ca1b1db.png

Link to comment
Share on other sites

I've just encountered another problem. If I have 2 cameras with set layers and I push them to scene only one camera will handle the picking. So If I push camera that watches the cube 1st then I can interact only with plane that is attached to camera or cube. If I push another camera 1st I can interact only with objects visible in this camera and buttons that I places on the plane attached to camera watching cube aren't dispatching any events.

Link to comment
Share on other sites

For the two cameras questions, you can only have one activeCamera for picking per scene. You can change it with 

scene.cameraToUseForPointers
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...