コード例 #1
0
        public void ForceSkeleton()
        {
            forcedSlotBones = true;
            SkeletonTools.ForceSkeleton(RaceSMR, SlotSMR);
            ForceButton.gameObject.SetActive(false);
#if UNITY_EDITOR
            if (slotAssetPath.EndsWith(".fbx", System.StringComparison.InvariantCultureIgnoreCase))
            {
                PrefabUtility.CreatePrefab(AssetDatabase.GenerateUniqueAssetPath(slotAssetPath.Substring(0, slotAssetPath.Length - 4) + ".prefab"), SlotGO);
            }
#endif
        }
コード例 #2
0
 public void ForceSkeleton()
 {
     forcedSlotBones = true;
     SkeletonTools.ForceSkeleton(RaceSMR, SlotSMR);
     ForceButton.gameObject.SetActive(false);
 }