I’m refining a tutorial for a game made with Open XR, and I was looking for a way to highlight keys to use in controllers that are created at runtime during the game instead of hands.
For example, in the first step of the tutorial where you interact with the UI I wanted to highlight the trigger, for the next step where you want to show how to grab objects, I wanted to highlight the grip button and so on (each step also has its own Manager).
I tried in creating a controller script to assign to the controller prefabs already available in the library, but since the controller object itself is created only at runtime, I don’t know how to then access these methods in the various manager scripts by making a reference to the controller gameobjects.
I’ve tried a GameObject.Find
( although I know it’s not recommended) to look up the objects at runtime and then call functions on them to highlight the buttons I want, but it didn’t work. Is there a smarter way to do this?