public Transform GetPart(string name) { var frame = _frames.GetByName(name); return(frame != null ? frame.transform : null); }
private void LoadModel(string modelName, params string[] txds) { if (_frames != null) { Destroy(_frames.Root.gameObject); Destroy(_frames); _loadedAnims.Clear(); } var geoms = Geometry.Load(modelName, txds); _frames = geoms.AttachFrames(transform, MaterialFlags.Default); _root = _frames.GetByName("Root"); }