Skip to content

AnimationNodeStateMachineTransition

eduardgushchin edited this page Oct 5, 2026 · 1 revision

Home | API by Category | Complete API Index | API Status

Field Value
Full name Electron2D.AnimationNodeStateMachineTransition
Namespace Electron2D
Kind class
Category API Scene

Overview

A borrowed state-machine edge policy with typed conditions and optional unit fade curve.

Syntax

public sealed class Electron2D.AnimationNodeStateMachineTransition

Remarks

Condition keys are declared on each owning machine. The predicate receives the current tree; captured state and callback allocations remain caller-owned. Changes invalidate attached graphs.

Inherits: Resource

Detailed engine reference

Members

Member Kind Summary
public AnimationNodeStateMachineTransition() constructor Creates an enabled immediate edge with zero fade, reset enabled and priority one.
public event System.Action AdvanceConditionChanged event Occurs after assigning the typed condition key, including an equal assignment.
protected override System.Void CopyCustomStateTo(Electron2D.Resource target, System.Boolean deep, Electron2D.DeepDuplicateMode mode, System.Func<Electron2D.Resource, Electron2D.Resource> duplicate, System.Func<Electron2D.Resource, Electron2D.Resource> force) method
protected override Electron2D.Resource CreateDuplicateInstance() method
protected override System.Void Dispose(System.Boolean disposing) method
protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors() method
public Electron2D.AnimationParameter<System.Boolean> AdvanceCondition { get; set; } property Gets or sets the borrowed typed flag; null imposes no flag condition.
public System.Func<Electron2D.AnimationTree, System.Boolean> AdvanceExpression { get; set; } property Gets or sets the executable predicate; null imposes no expression condition.
public Electron2D.AnimationAdvanceMode AdvanceMode { get; set; } property Selects disabled, travel-enabled or automatic advancement.
public System.Boolean BreakLoopAtEnd { get; set; } property Gets or sets whether AtEnd may leave a looping clip at its predicted cycle endpoint.
public System.Int32 Priority { get; set; } property Gets or sets the nonnegative route-cost multiplier and automatic priority; smaller wins.
public System.Boolean Reset { get; set; } property Gets or sets whether the destination timeline restarts when the edge activates.
public Electron2D.AnimationSwitchMode SwitchMode { get; set; } property Selects immediate, synchronized or end-of-cycle switching.
public Electron2D.Curve XFadeCurve { get; set; } property Gets or sets the borrowed curve sampling the destination fade weight; null is linear.
public System.Double XFadeTime { get; set; } property Gets or sets the nonnegative finite crossfade duration in seconds.

Member Details

AnimationNodeStateMachineTransition()

Kind: constructor

public AnimationNodeStateMachineTransition()

Summary

Creates an enabled immediate edge with zero fade, reset enabled and priority one.

AdvanceConditionChanged

Kind: event

public event System.Action AdvanceConditionChanged

Summary

Occurs after assigning the typed condition key, including an equal assignment.

CopyCustomStateTo(Electron2D.Resource, System.Boolean, Electron2D.DeepDuplicateMode, System.Func<Electron2D.Resource, Electron2D.Resource>, System.Func<Electron2D.Resource, Electron2D.Resource>)

Kind: method

protected override System.Void CopyCustomStateTo(Electron2D.Resource target, System.Boolean deep, Electron2D.DeepDuplicateMode mode, System.Func<Electron2D.Resource, Electron2D.Resource> duplicate, System.Func<Electron2D.Resource, Electron2D.Resource> force)

CreateDuplicateInstance()

Kind: method

protected override Electron2D.Resource CreateDuplicateInstance()

Dispose(System.Boolean)

Kind: method

protected override System.Void Dispose(System.Boolean disposing)

GetPropertyDescriptors()

Kind: method

protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors()

AdvanceCondition

Kind: property

public Electron2D.AnimationParameter<System.Boolean> AdvanceCondition { get; set; }

Summary

Gets or sets the borrowed typed flag; null imposes no flag condition.

Value

Initially null.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.

AdvanceExpression

Kind: property

public System.Func<Electron2D.AnimationTree, System.Boolean> AdvanceExpression { get; set; }

Summary

Gets or sets the executable predicate; null imposes no expression condition.

Value

Initially null.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.

AdvanceMode

Kind: property

public Electron2D.AnimationAdvanceMode AdvanceMode { get; set; }

Summary

Selects disabled, travel-enabled or automatic advancement.

Value

Initially AnimationAdvanceMode.Enabled.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.
  • T:System.ArgumentOutOfRangeException: The value is nonfinite, negative or an undefined enumeration.

BreakLoopAtEnd

Kind: property

public System.Boolean BreakLoopAtEnd { get; set; }

Summary

Gets or sets whether AtEnd may leave a looping clip at its predicted cycle endpoint.

Value

Initially false.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.

Priority

Kind: property

public System.Int32 Priority { get; set; }

Summary

Gets or sets the nonnegative route-cost multiplier and automatic priority; smaller wins.

Value

Initially 1.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.
  • T:System.ArgumentOutOfRangeException: The value is nonfinite, negative or an undefined enumeration.

Reset

Kind: property

public System.Boolean Reset { get; set; }

Summary

Gets or sets whether the destination timeline restarts when the edge activates.

Value

Initially true.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.

SwitchMode

Kind: property

public Electron2D.AnimationSwitchMode SwitchMode { get; set; }

Summary

Selects immediate, synchronized or end-of-cycle switching.

Value

Initially AnimationSwitchMode.Immediate.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.
  • T:System.ArgumentOutOfRangeException: The value is nonfinite, negative or an undefined enumeration.

XFadeCurve

Kind: property

public Electron2D.Curve XFadeCurve { get; set; }

Summary

Gets or sets the borrowed curve sampling the destination fade weight; null is linear.

Value

Initially null.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.

XFadeTime

Kind: property

public System.Double XFadeTime { get; set; }

Summary

Gets or sets the nonnegative finite crossfade duration in seconds.

Value

Initially 0.

Exceptions

  • T:System.ObjectDisposedException: This resource or a supplied curve is disposed.
  • T:System.ArgumentOutOfRangeException: The value is nonfinite, negative or an undefined enumeration.

Clone this wiki locally