ManualMixerState.

CreatePlayable<T>(Playable, T, bool) Method

Summary

Creates an UnityEngine.Animations.AnimationScriptPlayable to run the specified Animation Job instead of the usual UnityEngine.Animations.AnimationMixerPlayable.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
ManualMixerState

Syntax

protected void CreatePlayable<T>(out Playable playable, T job, bool processInputs = false) 
    where T : struct, IAnimationJob

Examples

public class MyMixer : LinearMixerState
{
    protected override void CreatePlayable(out Playable playable)
    {
        CreatePlayable(out playable, new MyJob());
    }

    private struct MyJob : IAnimationJob
    {
        public void ProcessAnimation(AnimationStream stream)
        {
        }

        public void ProcessRootMotion(AnimationStream stream)
        {
        }
    }
}
See also:

Remarks

Documentation: Creating Custom States

Type Parameters

Name Description
T

Parameters

Name Type Description
playable Playable
job T
processInputs bool

Return Value

Type Description
void

See Also

  • Animancer.ManualMixerState.CreatePlayable``1(Animancer.AnimancerPlayable,``0,System.Boolean)