I have a known incoming transform hierarchy from Maya like this:
root|one|two|three
If I want to refer to a variable on transform three in Maya I would use:
root|one|two|three|threeShape1.var
After importing into Unity as an FBX how do I refer to a public game object component variable on transform three without sorting through everything in the scene using "find"?
Thanks!
Feb26: Wow - is this too hard? What I was expecting is something like:
transform(root/one/two/three/).gameObject.componentName.variableName
Maybe the question should be:
How do you refer to a unique game object component on a unique child transform? (From a script component on the root transform)
Do you really have to maintain a hash table of all your objects? Shouldn't Unity do that? http://answers.unity3d.com/questions/11959/transform-find-and-instantiate-do-not-return-the-same-type
I'm completely confounded by the relationship between a transform and a game object. All 3D software uses transform hierarchies as the basic organisational structure - is Unity some how different??? http://unity3d.com/support/documentation/ScriptReference/Transform.html http://unity3d.com/support/documentation/ScriptReference/GameObject.GetComponent.html