Class TransitionNode
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
public class TransitionNode : PoseNodeInheritance
object ← GraphNode ← PoseNode ← TransitionNode
Inherited Members
PoseNode.UpdateSourceOrDefault(GraphContext, PoseNode, SyncTrackTimeRange?), PoseNode.LoopCount, PoseNode.Duration, PoseNode.CurrentTime, PoseNode.PreviousTime, PoseNode.PoseTransforms, PoseNode.Instantiate(GraphContext), PoseNode.Initialize(GraphContext, SyncTrackTime), PoseNode.Initialize(GraphContext), PoseNode.InitializeInternal(GraphContext), PoseNode.InitializeInternal(GraphContext, SyncTrackTime), PoseNode.IsValid, PoseNode.SyncTrack, PoseNode.Update(GraphContext, SyncTrackTimeRange?), GraphNode.NodeIdx, GraphNode.Instantiate(GraphContext), GraphNode.WasUpdated(GraphContext), GraphNode.MarkNodeActive(GraphContext), GraphNode.IsInitialized, GraphNode.Initialize(GraphContext), GraphNode.Shutdown(GraphContext), GraphNode.InitializeInternal(GraphContext), GraphNode.ShutdownInternal(GraphContext)
Constructors
TransitionNode(KVObject)
Reads the TransitionNode from its KeyValues3 data.
public TransitionNode(KVObject data)Parameters
data KVObject
Properties
BlendWeightEasing
public EasingOperation BlendWeightEasing { get; }Property Value
BoneMaskBlendInTimePercentage
public Percent BoneMaskBlendInTimePercentage { get; }Property Value
DurationOverrideNodeIdx
public short DurationOverrideNodeIdx { get; }Property Value
short
DurationSeconds
[KVProperty("m_flDuration")]
public float DurationSeconds { get; }Property Value
float
IsSourceACachedPose
public bool IsSourceACachedPose { get; }Property Value
bool
IsSourceACachedPoseOrOffState
public bool IsSourceACachedPoseOrOffState { get; }Property Value
bool
IsSourceAState
public bool IsSourceAState { get; }Property Value
bool
IsSourceAnOffState
public bool IsSourceAnOffState { get; }Property Value
bool
IsSourceTransition
public bool IsSourceTransition { get; }Property Value
bool
IsSynchronized
public bool IsSynchronized { get; }Property Value
bool
ProgressPercentage
public float ProgressPercentage { get; }Property Value
float
RootMotionBlend
public RootMotionBlendMode RootMotionBlend { get; }Property Value
StartBoneMaskNodeIdx
[KVProperty("m_startBoneMaskNodeIdx")]
public short StartBoneMaskNodeIdx { get; }Property Value
short
SyncTrack
The sync track for this node's timeline; pass-through nodes forward their child's.
public override SyncTrack SyncTrack { get; }Property Value
TargetStateNodeIdx
public short TargetStateNodeIdx { get; }Property Value
short
TargetSyncIDNodeIdx
[KVProperty("m_targetSyncIDNodeIdx")]
public short TargetSyncIDNodeIdx { get; }Property Value
short
TimeOffset
public float TimeOffset { get; }Property Value
float
TimeOffsetOverrideNodeIdx
[KVProperty("m_timeOffsetOverrideNodeIdx")]
public short TimeOffsetOverrideNodeIdx { get; }Property Value
short
TransitionOptions
public BitFlags TransitionOptions { get; }Property Value
Methods
GetOption(TransitionOptions_t)
public bool GetOption(TransitionNode.TransitionOptions_t option)Parameters
option TransitionNode.TransitionOptions_t
Returns
bool
GetSourceStateNode()
public StateNode GetSourceStateNode()Returns
GetSourceTransitionNode()
public TransitionNode GetSourceTransitionNode()Returns
InitializeInternal(GraphContext, SyncTrackTime)
Resets the node state when it becomes active, starting at the given time.
protected override void InitializeInternal(GraphContext ctx, SyncTrackTime initialTime)Parameters
ctx GraphContext
initialTime SyncTrackTime
InitializeTargetStateAndUpdateTransition(GraphContext, StartOptions)
public GraphPoseNodeResult InitializeTargetStateAndUpdateTransition(GraphContext ctx, TransitionNode.StartOptions options)Parameters
ctx GraphContext
options TransitionNode.StartOptions
Returns
Instantiate(GraphContext)
Wires child node references and definition-derived state. Runs once for every node in array order at graph construction.
public override void Instantiate(GraphContext ctx)Parameters
ctx GraphContext
IsComplete(GraphContext)
public bool IsComplete(GraphContext ctx)Parameters
ctx GraphContext
Returns
bool
NotifyNewTransitionStarting(GraphContext, StateNode, List<StateNode>)
Called before a new (forced) transition starts so this in-flight transition can switch to a cached-pose source if its source is about to become the new target state, or start caching its pose if a forceable transition back to its source may follow.
public void NotifyNewTransitionStarting(GraphContext ctx, StateNode targetStateNode, List<StateNode> forceableFutureTargetStatesUsingCachedPoses)Parameters
ctx GraphContext
targetStateNode StateNode
forceableFutureTargetStatesUsingCachedPoses List<StateNode>
ShutdownInternal(GraphContext)
Clears the node state when it becomes inactive.
protected override void ShutdownInternal(GraphContext ctx)Parameters
ctx GraphContext
Update(GraphContext, SyncTrackTimeRange?)
Advances the node and returns its pose, optionally over a sync track range.
public override GraphPoseNodeResult Update(GraphContext ctx, SyncTrackTimeRange? updateRange = null)Parameters
ctx GraphContext
updateRange SyncTrackTimeRange?

