Getting a Prefab GameObject to reference itself

JasonT

Member
Trying to get an instance of a prefab GameObject to set itself to a Global Variable.
Then elsewhere in the tree check to see if it is still that Global Variable. I can get this work easily when it's not a prefab by dragging the scene object into the compare task. Is there an easy way have a task reference itself whether it's a prefab or not?
 

Attachments

  • prefab to global reference.png
    prefab to global reference.png
    61.2 KB · Views: 3
You'll need to do some type of lookup. Take a look at this page for more info:

 
Top