Forum Discussion
Anonymous
2 years agoHow do I reference a GameObject out of the hierarchy from a Unity event wrapper?
In my case I am using an Interactable Unity Event Wrapper, which should call a method from the GameManager (My main management script), which is attached as a component to a GameObject in the hierarchy.
However, as a GameObject it cannot be referenced from the Event Wrapper (Only scripts and prefabs are possible).
It might also be useful to say that it is not possible to get the GameManager instance in the Interactable Unity Event Wrappers code because it is "encapsulated" by an assembly definition.
Does anyone know how I can modify my GameManager or use the Unity event wrappers differently to call the method?
I am always available to answer questions that provide a clearer picture of the problem.
Thank you very much for all answers in advance!
Replies have been turned off for this discussion
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago