Class AnimationProxy.AnimationMontageNode
- Namespace
- Ceres.Gameplay.Animations
- Assembly
- Ceres.Gameplay.dll
public class AnimationProxy.AnimationMontageNode : AnimationProxy.AnimationPlayableNode, IDisposable
- Inheritance
-
AnimationProxy.AnimationMontageNode
- Implements
- Derived
- Inherited Members
Constructors
AnimationMontageNode(Playable, RuntimeAnimatorController)
public AnimationMontageNode(Playable playable, RuntimeAnimatorController runtimeAnimatorController)
Parameters
playablePlayableruntimeAnimatorControllerRuntimeAnimatorController
Fields
BlendHandle
public SchedulerHandle BlendHandle
Field Value
Child
public AnimationProxy.AnimationPlayableNode Child
Field Value
Parent
public AnimationProxy.AnimationMontageNode Parent
Field Value
Methods
Blend(float)
Cross-fade parent to child by weight
public virtual void Blend(float weight)
Parameters
weightfloat
CanShrink()
Whether node can be shrink to optimize graph structure when parent is completly blend out
public virtual bool CanShrink()
Returns
CreateEmptyMontage(PlayableGraph)
Create empty montage
public static AnimationProxy.AnimationMontageNode CreateEmptyMontage(PlayableGraph graph)
Parameters
graphPlayableGraph
Returns
CreateLayerMontage(AnimationMontageNode[], LayerContext[])
Create layer montage
public static AnimationProxy.AnimationLayerMontageNode CreateLayerMontage(AnimationProxy.AnimationMontageNode[] sources, AnimationProxy.LayerContext[] contexts)
Parameters
sourcesAnimationMontageNode[]contextsLayerContext[]
Returns
CreateMontage(AnimationMontageNode, AnimationPlayableNode)
Create blendable montage from parent montage to child playable
public static AnimationProxy.AnimationMontageNode CreateMontage(AnimationProxy.AnimationMontageNode parent, AnimationProxy.AnimationPlayableNode source)
Parameters
Returns
CreateMontage(AnimationPlayableNode)
Create blendable montage with child only, parent is out of proxy scope
public static AnimationProxy.AnimationMontageNode CreateMontage(AnimationProxy.AnimationPlayableNode source)
Parameters
Returns
Dispose()
Dispose playable resources recursively
public override void Dispose()
GetBlendWeight()
Get cross-fade current weight
public virtual float GetBlendWeight()
Returns
IsCompositeRoot()
Whether node is composite root, which is child only
public bool IsCompositeRoot()
Returns
ScheduleBlendIn(float, Action)
public void ScheduleBlendIn(float duration, Action callBack = null)
Parameters
ScheduleBlendOut(float, Action)
public void ScheduleBlendOut(float duration, Action callBack = null)
Parameters
Shrink()
Shrink link list to release not used playables
public AnimationProxy.AnimationMontageNode Shrink()
Returns
- AnimationProxy.AnimationMontageNode
Current leaf node
Operators
operator |(AnimationMontageNode, AnimationPlayableNode)
public static AnimationProxy.AnimationMontageNode operator |(AnimationProxy.AnimationMontageNode left, AnimationProxy.AnimationPlayableNode right)