Assets/Live2D/Cubism/Framework/MotionFade/Editor/CubismFadeMotionImporter.cs
/// <summary>
/// Create animator controller for MotionFade.
/// </summary>
/// <param name="assetPath"></param>
/// <returns>Animator controller attached CubismFadeStateObserver.</returns>
Create animator controller for MotionFade.
Create animator controller for MotionFade .
public static AnimatorController CreateAnimatorController(string assetPath)
        {
            var animatorController = AnimatorController.CreateAnimatorControllerAtPath(assetPath);
            animatorController.layers[0].stateMachine.AddStateMachineBehaviour<CubismFadeStateObserver>();
            return animatorController;
        }
public static AnimatorController CreateAnimatorController ( string assetPath ) { var animatorController = AnimatorController . CreateAnimatorControllerAtPath ( assetPath ) ; animatorController . layers [ 0 ] . stateMachine . AddStateMachineBehaviour < CubismFadeStateObserver > ( ) ; return animatorController ; }
Create animator controller for MotionFade.
Create animator controller for MotionFade .
Animator controller attached CubismFadeStateObserver.
Animator controller attached CubismFadeStateObserver .
assetPath
string
None