I am creating an app using OculusVR.
I have a canvas which has a number of buttons.
I wish these buttons to appear only when the user looks down at that area.
How can I detect the event of the used looking there so that I can activate the buttons?
I am creating an app using OculusVR.
I have a canvas which has a number of buttons.
I wish these buttons to appear only when the user looks down at that area.
How can I detect the event of the used looking there so that I can activate the buttons?
If it’s for performance reason, view frustrum culling handles the render portion of that and I think that mouse ray cast events of the uGUI also get culled.
If you’re really scratching for extra ms, you can use CullingGroups: Unity - Manual: CullingGroup API.
The example also applies to 3d uGUI buttons.