cancel
Showing results for 
Search instead for 
Did you mean: 

How do I reference a GameObject out of the hierarchy from a Unity event wrapper?

Anonymous
Not applicable
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!
0 REPLIES 0