The only real way to reference a script of the parent object (than the graph is bound to) to call a get/set/check field/property (or any other task), is to change the “Target” of the Action or Condition Task. That can be done by checking the checkbox next to where it says “Use Self” (at the top of the Action/Condition inspector) and assigning the target object that you want to reference directly, or assigning a variable that has that object instead (both ways will work fine).
If the parent object is part of the same prefab, then all instances of that prefab will also correctly still reference their own (instance) parent.
Please let me know if that is indeed what you mean and if that works for you.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.