focomoso Posted August 18, 2017 Share Posted August 18, 2017 I'm building a custom rotation / scale gizmo. It draws in its own renderingGroup so it's always visible no matter what geometry might be in front of it (thanks @deltakosh). Now I've added rollover highlighting to the gizmo using the ActionManager.OnPointerOverTrigger and OnPointerOutTrigger. This is also working fine: no matter what geometry is between the camera and the gizmo, the gizmo highlights on rollover. But when I add an ActionManager.OnPickDownTrigger, the trigger is only triggered when there is nothing between the camera and the gizmo. This causes a bad experience for the user because it looks from the highlighting that their click will select the gizmo, but it actually doesn't because the gizmo is blocked. Is there a way for the OnPickDownTrigger to ignore the blocking geometry the same way the OnPointerOverTrigger does? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 18, 2017 Share Posted August 18, 2017 Hiya F! Will your project allow you to set allOtherMesh.isPickable = false; ? Perhaps re-activate all picking when gizmo is closed. Maybe. Quote Link to comment Share on other sites More sharing options...
focomoso Posted August 18, 2017 Author Share Posted August 18, 2017 That worked perfectly, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.