Jump to content

GUI with custom Viewport mouse bug


Zuzuk
 Share

Recommended Posts

I guess this is different.

I guess you have multiple cameras with viewport? By default the activecamera is used for picking and it should be the first one in your scene.

If you want to support picking on all scene, I will recommend creating a new camera, set it to scene.cameraToUseForPointers

Even better: just create a second scene for you UI and set scene.autoClear = false. This will avoid all these issues :)

 

Link to comment
Share on other sites

19 hours ago, Deltakosh said:

I guess this is different.

I guess you have multiple cameras with viewport? By default the activecamera is used for picking and it should be the first one in your scene.

If you want to support picking on all scene, I will recommend creating a new camera, set it to scene.cameraToUseForPointers

Even better: just create a second scene for you UI and set scene.autoClear = false. This will avoid all these issues :)

 

buttons are on the first camera viewport

on the stable version of gui buttons works

Link to comment
Share on other sites

It fixed the PG, but not project and I found mistake:

My fps text block was on top of ALL of screen, so it blocks all picks(I thought that text block is only where the text is)

Thanks for fix, don't know why it works before

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...