ManualMixerState.

CreatePlayable<T>(AnimancerPlayable, 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>(AnimancerPlayable root, T job, bool processInputs = false) 
    where T : struct, IAnimationJob

Examples

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
root AnimancerPlayable
job T
processInputs bool

Return Value

Type Description
AnimationScriptPlayable

See Also

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