Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
SwitchMode
AnimationNodeStateMachineTransition.swift:21enum SwitchMode
Cases
case immediate
Switch to the next state immediately. The current state will end and blend into the beginning of the new one.
case sync
Switch to the next state immediately, but will seek the new state to the playback position of the old state.
case atEnd
Wait for the current state playback to end, then switch to the beginning of the next state animation.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (11) members.
Types
Type members
Instance members
var advanceCondition: StringName
Turn on auto advance when this condition is set. The provided name will become a boolean parameter on the
AnimationTree
that can be controlled from code (see Using AnimationTree). For example, iftreeRoot
is anAnimationNodeStateMachine
andadvanceCondition
is set to"idle"
:var advanceConditionChanged: SimpleSignal
Emitted when
advanceCondition
is changed.var advanceExpression: String
Use an expression as a condition for state machine transitions. It is possible to create complex animation advance conditions for switching between states and gives much greater flexibility for creating complex state machines by directly interfacing with the script code.
var advanceMode: AnimationNodeStateMachineTransition.AdvanceMode
Determines whether the transition should disabled, enabled when using
travel(toNode:resetOnTeleport:)
, or traversed automatically if theadvanceCondition
andadvanceExpression
checks are true (if assigned).var priority: Int32
Lower priority transitions are preferred when travelling through the tree via
travel(toNode:resetOnTeleport:)
oradvanceMode
is set to .auto.var reset: Bool
If
true
, the destination animation is played back from the beginning when switched.var switchMode: AnimationNodeStateMachineTransition.SwitchMode
The transition type.
var xfadeCurve: Curve?
Ease curve for better control over cross-fade between this state and the next.
var xfadeTime: Double
The time to cross-fade between this state and the next.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.