// For logic state public void AddStatePlayable(LogicState state, LogicMotionMatchingLayer layer) { state.SetPlayable(AnimationMixerPlayable.Create(this.graph)); layer.GetPlayable().AddInput(state.GetPlayable(), 0); }
// For Logic layer public void AddLayerPlayable(LogicMotionMatchingLayer layer) { layer.SetPlayable(AnimationMixerPlayable.Create(this.graph, 0, true)); layerMixer.AddInput(layer.GetPlayable(), 0, 1f); }