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