Hi!
Here is my question:
I have an animated hierachical model that I made in Maya. And I want to group a prefab object under one of its animated child node. The problem is, when I parent it as a child of that node, I can’t change its rotation anymore. Am I miss something? Here is the code snippet:
gobj=gameObject.Find("g" + (i+1));
// find the animated node in the maya model
var newObj: GameObject=Instantiate(copyObj,Vector3(0,0,0),Quaternion.identity);
newObj.transform.parent = gobj.transform;
// parenting
newObj.transform.localRotation =Quaternion.identity;
Debug.Log(newObj.transform.rotation.eulerAngles.x);
// this is not zero even I reset the rotation. Why?