/// <summary> /// Clone /// </summary> /// <param name="cloned"></param> /// <returns></returns> public IResDesc Clone(GameObject cloned) { var d = new ResDescSkinnedMesh { name = name, renderer = cloned.GetComponent <SkinnedMeshRenderer>() }; return(d); }
/// <summary> /// 加载蒙皮 /// </summary> static public ResRef LoadSkinnedMesh(ResDescSkinnedMesh desc) { var url = PathToUrl(desc.name, ResType.Mesh); return(LoadResByUrl <ResMesh>(url, desc.name, null, desc)); }