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
Remarks
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
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.AnimancerGraph,``0,System.Boolean)