Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
OneShotRequest
AnimationNodeOneShot.swift:22enum OneShotRequest
Cases
case none
The default state of the request. Nothing is done.
case fire
The request to play the animation connected to “shot” port.
case abort
The request to stop the animation connected to “shot” port.
case fadeOut
The request to fade out the animation connected to “shot” port.
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 autorestart: Bool
If
true
, the sub-animation will restart automatically after finishing.var autorestartDelay: Double
The delay after which the automatic restart is triggered, in seconds.
var autorestartRandomDelay: Double
If
autorestart
istrue
, a random additional delay (in seconds) between 0 and this value will be added toautorestartDelay
.var breakLoopAtEnd: Bool
If
true
, breaks the loop at the end of the loop cycle for transition, even if the animation is looping.var fadeinCurve: Curve?
Determines how cross-fading between animations is eased. If empty, the transition will be linear.
var fadeinTime: Double
The fade-in duration. For example, setting this to
1.0
for a 5 second length animation will produce a cross-fade that starts at 0 second and ends at 1 second during the animation.var fadeoutCurve: Curve?
Determines how cross-fading between animations is eased. If empty, the transition will be linear.
var fadeoutTime: Double
The fade-out duration. For example, setting this to
1.0
for a 5 second length animation will produce a cross-fade that starts at 4 second and ends at 5 second during the animation.var mixMode: AnimationNodeOneShot.MixMode
The blend type.
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.