GameObject A has Component B attached to it. Component B is just a Script. Component B has GameObject C as a public variable.
GameObject C is just an empty GameObject with a Script attached to it.
How do I reference Component B from GameObject C?
How do I reference GameObject A from GameObject C?
(I know this is a little confusing, and I apologize. I tried to simplify it as much as possible.)
If I get this right you are asking to climb backwards up the references? This can't be done through normal programming methods. There may be some bizarre reflection techniques that allow this.
If I get this right you are asking to climb backwards up the references? This can't be done through normal programming methods. There may be some bizarre reflection techniques that allow this.
– Kiwasi