0 votes
by (8.2k points)

My interactable cube doesn't enable the functions assigned to the button even though I've attached gaze pointer scripts to the buttons and laser pointer and physics raycaster to the sense camera it's not functioning in play mode.




 

1 Answer

0 votes
by (8.2k points)

If you want to use a reticle pointer you can use that or if you want to use an interactable cube you can use that.

For Reticle Pointer 

  1.  Add the Main camera to the hierarchy panel.
  2. Make Reticle Pointer child of main camera and position of reticle pointer is(0,0,0).
  3. Add the "laser pointer" script to the Main camera.
  4. n the laser pointer change the parameter value to (0,0).

In Sphere:-

  • Add Teleport script drag and drop the player in (Inspector panel).
  • Gaze pointer script.
  • Event Trigger - Pointer down.

For Interactable Cube.

  1. Add Sense Camera into the hierarchy panel.
  2. Add Developer Cube.
  3. Inside TechXR Essentials add sense event system.
  4. Developer cube must be interactable.

In Sphere:-

  • Add Teleport script drag and drop the player in (Inspector panel).
  • Gaze pointer script.
  • Event Trigger - Pointer down.
TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

8 comments

99.7k users

...