Summary
Creates an UnityEngine.Animations.AnimationScriptPlayable to run the specified Animation Job instead of the usual
UnityEngine.Animations.AnimationMixerPlayable.
Syntax
protected void CreatePlayable<T>(out Playable playable, T job, bool processInputs = false)
where T : struct, IAnimationJob
Documentation:
Creating Custom States
Example: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:
Type Parameters
Parameters
| Name |
Type |
Description |
| playable |
Playable |
|
| job |
T |
|
| processInputs |
bool |
|
Return Value
See Also
- Animancer.ManualMixerState.CreatePlayable``1(Animancer.AnimancerGraph,``0,System.Boolean)