|
If I have a hierarchy: -Parent Can ChildTwo have a BroadcastMessage on it that ChildOne can "hear"?
(comments are locked)
|
|
The answer is yes, but you have to reference that child.
(comments are locked)
|
|
Yes, it's called SendMessageUpwards() :) EDIT: Or did you mean laterally (eg: a child on the same level of the hierarchy?) Because BroadcastMessage should do that by default.
(comments are locked)
|
|
Depending on your other requirements, you could send the message from ChildOne's parent, or even its root (in case the hierarchy was many layers deep). e.g. or where does root look at?
Jun 30 '11 at 08:03 PM
zachypin
The 'root' of a hierarchy is the object without a parent. In your example "Parent" is also the root. If "Parent" had its own parent, say, "Grandparent", then "Grandparent" would be the root. See http://unity3d.com/support/documentation/ScriptReference/Transform-root.html
Jun 30 '11 at 08:15 PM
Molix
(comments are locked)
|
