// this builds a sTransform list of all transforms attached to the gameobject private void storeTransforms(Transform t_parent, List<sTransform> list) { if (t_parent==null){ return; } list.Add(t_parent.Serializable()); foreach(Transform t_child in t_parent){ storeTransforms(t_child, list); } }