ManualMixerState.

CreatePlayable<T>(AnimancerGraph, 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

public AnimationScriptPlayable CreatePlayable<T>(AnimancerGraph graph, T job, bool processInputs = false) 
    where T : struct, IAnimationJob

Remarks

Example:
void CreatePlayableExample(AnimancerComponent animancer)
}
    var job = new MyJob();// A struct that implements IAnimationJob.
    var mixer = new WhateverMixerState();// e.g. LinearMixerState.
    mixer.CreatePlayable(animancer, job);
    // Use mixer.Initialize, CreateChild, and SetChild to configure the children as normal.
}
See also:

Type Parameters

Name Description
T

Parameters

Name Type Description
graph AnimancerGraph
job T
processInputs bool

Return Value

Type Description
AnimationScriptPlayable

See Also

  • Animancer.ManualMixerState.CreatePlayable``1(UnityEngine.Playables.Playable@,``0,System.Boolean)