/// <summary>
        /// Deleters the corresponding asset.
        /// </summary>
        public override void Delete()
        {
            var fadeAssetPath = AssetPath.Replace(".anim", ".fade.asset");
            var fadeAsset     = AssetDatabase.LoadAssetAtPath <CubismFadeMotionData>(fadeAssetPath);

            // Fail silently...
            if (fadeAsset == null)
            {
                return;
            }

            // Delete fade motion asset.
            AssetDatabase.DeleteAsset(fadeAssetPath);

            // Get fade motion asset deleter.
            var fadeMotionDeleter = CubismDeleter.GetDeleterAsPath(fadeAssetPath);

            // Fail silently...
            if (fadeMotionDeleter == null)
            {
                return;
            }

            fadeMotionDeleter.Delete();
        }
 // ReSharper disable once UnusedMember.Local
 private static void RegisterDeleter()
 {
     CubismDeleter.RegisterDeleter <CubismFadeAssetDeleter>(".fade.asset");
 }
 // ReSharper disable once UnusedMember.Local
 private static void RegisterDeleter()
 {
     CubismDeleter.RegisterDeleter <CubismAnimationClipDeleter>(".anim");
 }
Beispiel #4
0
 // ReSharper disable once UnusedMember.Local
 private static void RegisterDeleter()
 {
     CubismDeleter.RegisterDeleter <CubismExpressionAssetDeleter>(".exp3.asset");
 }