Animation

gdext.classes.Animation
See theAnimation companion object
abstract class Animation extends Resource

Generated wrapper for Godot's Animation, extends Resource.

Attributes

Companion
object
Graph
Supertypes
class Resource
class RefCounted
class Object
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

final def addMarker(name: StringName, time: Double): Unit

Animation.add_marker

Animation.add_marker

Attributes

final def addTrack(`type`: Long, at_position: Long): Long

Animation.add_track

Animation.add_track

Attributes

final def animationTrackGetKeyAnimation(track_idx: Long, key_idx: Long): StringName

Animation.animation_track_get_key_animation

Animation.animation_track_get_key_animation

Attributes

final def animationTrackInsertKey(track_idx: Long, time: Double, animation: StringName): Long

Animation.animation_track_insert_key

Animation.animation_track_insert_key

Attributes

final def animationTrackSetKeyAnimation(track_idx: Long, key_idx: Long, animation: StringName): Unit

Animation.animation_track_set_key_animation

Animation.animation_track_set_key_animation

Attributes

final def audioTrackGetKeyEndOffset(track_idx: Long, key_idx: Long): Double

Animation.audio_track_get_key_end_offset

Animation.audio_track_get_key_end_offset

Attributes

final def audioTrackGetKeyStartOffset(track_idx: Long, key_idx: Long): Double

Animation.audio_track_get_key_start_offset

Animation.audio_track_get_key_start_offset

Attributes

final def audioTrackGetKeyStream(track_idx: Long, key_idx: Long): Resource

Animation.audio_track_get_key_stream. Returns an owned reference: release it with unref() or inside Gd.scoped.

Animation.audio_track_get_key_stream. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

final def audioTrackInsertKey(track_idx: Long, time: Double, stream: Resource, start_offset: Double, end_offset: Double): Long

Animation.audio_track_insert_key

Animation.audio_track_insert_key

Attributes

final def audioTrackIsUseBlend(track_idx: Long): Boolean

Animation.audio_track_is_use_blend

Animation.audio_track_is_use_blend

Attributes

final def audioTrackSetKeyEndOffset(track_idx: Long, key_idx: Long, offset: Double): Unit

Animation.audio_track_set_key_end_offset

Animation.audio_track_set_key_end_offset

Attributes

final def audioTrackSetKeyStartOffset(track_idx: Long, key_idx: Long, offset: Double): Unit

Animation.audio_track_set_key_start_offset

Animation.audio_track_set_key_start_offset

Attributes

final def audioTrackSetKeyStream(track_idx: Long, key_idx: Long, stream: Resource): Unit

Animation.audio_track_set_key_stream

Animation.audio_track_set_key_stream

Attributes

final def audioTrackSetUseBlend(track_idx: Long, enable: Boolean): Unit

Animation.audio_track_set_use_blend

Animation.audio_track_set_use_blend

Attributes

final def bezierTrackGetKeyInHandle(track_idx: Long, key_idx: Long): Vector2

Animation.bezier_track_get_key_in_handle

Animation.bezier_track_get_key_in_handle

Attributes

final def bezierTrackGetKeyOutHandle(track_idx: Long, key_idx: Long): Vector2

Animation.bezier_track_get_key_out_handle

Animation.bezier_track_get_key_out_handle

Attributes

final def bezierTrackGetKeyValue(track_idx: Long, key_idx: Long): Double

Animation.bezier_track_get_key_value

Animation.bezier_track_get_key_value

Attributes

final def bezierTrackInsertKey(track_idx: Long, time: Double, value: Double, in_handle: Vector2, out_handle: Vector2): Long

Animation.bezier_track_insert_key

Animation.bezier_track_insert_key

Attributes

final def bezierTrackInterpolate(track_idx: Long, time: Double): Double

Animation.bezier_track_interpolate

Animation.bezier_track_interpolate

Attributes

final def bezierTrackSetKeyInHandle(track_idx: Long, key_idx: Long, in_handle: Vector2, balanced_value_time_ratio: Double): Unit

Animation.bezier_track_set_key_in_handle

Animation.bezier_track_set_key_in_handle

Attributes

final def bezierTrackSetKeyOutHandle(track_idx: Long, key_idx: Long, out_handle: Vector2, balanced_value_time_ratio: Double): Unit

Animation.bezier_track_set_key_out_handle

Animation.bezier_track_set_key_out_handle

Attributes

final def bezierTrackSetKeyValue(track_idx: Long, key_idx: Long, value: Double): Unit

Animation.bezier_track_set_key_value

Animation.bezier_track_set_key_value

Attributes

final def blendShapeTrackInsertKey(track_idx: Long, time: Double, amount: Double): Long

Animation.blend_shape_track_insert_key

Animation.blend_shape_track_insert_key

Attributes

final def blendShapeTrackInterpolate(track_idx: Long, time_sec: Double, backward: Boolean): Double

Animation.blend_shape_track_interpolate

Animation.blend_shape_track_interpolate

Attributes

final def clear(): Unit

Animation.clear

Animation.clear

Attributes

final def compress(page_size: Long, fps: Long, split_tolerance: Double): Unit

Animation.compress

Animation.compress

Attributes

final def copyTrack(track_idx: Long, to_animation: Animation): Unit

Animation.copy_track

Animation.copy_track

Attributes

final def getLength(): Double

Animation.get_length

Animation.get_length

Attributes

final def getLoopMode(): Long

Animation.get_loop_mode

Animation.get_loop_mode

Attributes

final def getMarkerAtTime(time: Double): StringName

Animation.get_marker_at_time

Animation.get_marker_at_time

Attributes

final def getMarkerColor(name: StringName): Color

Animation.get_marker_color

Animation.get_marker_color

Attributes

final def getMarkerTime(name: StringName): Double

Animation.get_marker_time

Animation.get_marker_time

Attributes

final def getNextMarker(time: Double): StringName

Animation.get_next_marker

Animation.get_next_marker

Attributes

final def getPrevMarker(time: Double): StringName

Animation.get_prev_marker

Animation.get_prev_marker

Attributes

final def getStep(): Double

Animation.get_step

Animation.get_step

Attributes

final def getTrackCount(): Long

Animation.get_track_count

Animation.get_track_count

Attributes

override def godotClassName: String

The Godot class name for this instance. Engine wrappers override with the baked literal; user classes fall back to their Scala simple name (which is how registration names them).

The Godot class name for this instance. Engine wrappers override with the baked literal; user classes fall back to their Scala simple name (which is how registration names them).

Attributes

Definition Classes
final def hasMarker(name: StringName): Boolean

Animation.has_marker

Animation.has_marker

Attributes

final def isCaptureIncluded(): Boolean

Animation.is_capture_included

Animation.is_capture_included

Attributes

final def methodTrackGetName(track_idx: Long, key_idx: Long): StringName

Animation.method_track_get_name

Animation.method_track_get_name

Attributes

final def optimize(allowed_velocity_err: Double, allowed_angular_err: Double, precision: Long): Unit

Animation.optimize

Animation.optimize

Attributes

final def positionTrackInsertKey(track_idx: Long, time: Double, position: Vector3): Long

Animation.position_track_insert_key

Animation.position_track_insert_key

Attributes

final def positionTrackInterpolate(track_idx: Long, time_sec: Double, backward: Boolean): Vector3

Animation.position_track_interpolate

Animation.position_track_interpolate

Attributes

final def removeMarker(name: StringName): Unit

Animation.remove_marker

Animation.remove_marker

Attributes

final def removeTrack(track_idx: Long): Unit

Animation.remove_track

Animation.remove_track

Attributes

final def rotationTrackInsertKey(track_idx: Long, time: Double, rotation: Quaternion): Long

Animation.rotation_track_insert_key

Animation.rotation_track_insert_key

Attributes

final def rotationTrackInterpolate(track_idx: Long, time_sec: Double, backward: Boolean): Quaternion

Animation.rotation_track_interpolate

Animation.rotation_track_interpolate

Attributes

final def scaleTrackInsertKey(track_idx: Long, time: Double, scale: Vector3): Long

Animation.scale_track_insert_key

Animation.scale_track_insert_key

Attributes

final def scaleTrackInterpolate(track_idx: Long, time_sec: Double, backward: Boolean): Vector3

Animation.scale_track_interpolate

Animation.scale_track_interpolate

Attributes

final def setLength(time_sec: Double): Unit

Animation.set_length

Animation.set_length

Attributes

final def setLoopMode(loop_mode: Long): Unit

Animation.set_loop_mode

Animation.set_loop_mode

Attributes

final def setMarkerColor(name: StringName, color: Color): Unit

Animation.set_marker_color

Animation.set_marker_color

Attributes

final def setStep(size_sec: Double): Unit

Animation.set_step

Animation.set_step

Attributes

final def trackFindKey(track_idx: Long, time: Double, find_mode: Long, limit: Boolean, backward: Boolean): Long

Animation.track_find_key

Animation.track_find_key

Attributes

final def trackGetInterpolationLoopWrap(track_idx: Long): Boolean

Animation.track_get_interpolation_loop_wrap

Animation.track_get_interpolation_loop_wrap

Attributes

final def trackGetInterpolationType(track_idx: Long): Long

Animation.track_get_interpolation_type

Animation.track_get_interpolation_type

Attributes

final def trackGetKeyCount(track_idx: Long): Long

Animation.track_get_key_count

Animation.track_get_key_count

Attributes

final def trackGetKeyTime(track_idx: Long, key_idx: Long): Double

Animation.track_get_key_time

Animation.track_get_key_time

Attributes

final def trackGetKeyTransition(track_idx: Long, key_idx: Long): Double

Animation.track_get_key_transition

Animation.track_get_key_transition

Attributes

final def trackGetType(track_idx: Long): Long

Animation.track_get_type

Animation.track_get_type

Attributes

final def trackIsCompressed(track_idx: Long): Boolean

Animation.track_is_compressed

Animation.track_is_compressed

Attributes

final def trackIsEnabled(track_idx: Long): Boolean

Animation.track_is_enabled

Animation.track_is_enabled

Attributes

final def trackIsImported(track_idx: Long): Boolean

Animation.track_is_imported

Animation.track_is_imported

Attributes

final def trackMoveDown(track_idx: Long): Unit

Animation.track_move_down

Animation.track_move_down

Attributes

final def trackMoveTo(track_idx: Long, to_idx: Long): Unit

Animation.track_move_to

Animation.track_move_to

Attributes

final def trackMoveUp(track_idx: Long): Unit

Animation.track_move_up

Animation.track_move_up

Attributes

final def trackRemoveKey(track_idx: Long, key_idx: Long): Unit

Animation.track_remove_key

Animation.track_remove_key

Attributes

final def trackRemoveKeyAtTime(track_idx: Long, time: Double): Unit

Animation.track_remove_key_at_time

Animation.track_remove_key_at_time

Attributes

final def trackSetEnabled(track_idx: Long, enabled: Boolean): Unit

Animation.track_set_enabled

Animation.track_set_enabled

Attributes

final def trackSetImported(track_idx: Long, imported: Boolean): Unit

Animation.track_set_imported

Animation.track_set_imported

Attributes

final def trackSetInterpolationLoopWrap(track_idx: Long, interpolation: Boolean): Unit

Animation.track_set_interpolation_loop_wrap

Animation.track_set_interpolation_loop_wrap

Attributes

final def trackSetInterpolationType(track_idx: Long, interpolation: Long): Unit

Animation.track_set_interpolation_type

Animation.track_set_interpolation_type

Attributes

final def trackSetKeyTime(track_idx: Long, key_idx: Long, time: Double): Unit

Animation.track_set_key_time

Animation.track_set_key_time

Attributes

final def trackSetKeyTransition(track_idx: Long, key_idx: Long, transition: Double): Unit

Animation.track_set_key_transition

Animation.track_set_key_transition

Attributes

final def trackSwap(track_idx: Long, with_idx: Long): Unit

Animation.track_swap

Animation.track_swap

Attributes

final def valueTrackGetUpdateMode(track_idx: Long): Long

Animation.value_track_get_update_mode

Animation.value_track_get_update_mode

Attributes

final def valueTrackSetUpdateMode(track_idx: Long, mode: Long): Unit

Animation.value_track_set_update_mode

Animation.value_track_set_update_mode

Attributes

Inherited methods

def _can_handle(obj: GodotObject): Boolean

EditorInspectorPlugin: can this plugin handle obj's inspector?

EditorInspectorPlugin: can this plugin handle obj's inspector?

Attributes

Inherited from:
GodotScriptClass
def _enter_tree(): Unit

EditorPlugin/Node: entered the (editor) tree.

EditorPlugin/Node: entered the (editor) tree.

Attributes

Inherited from:
GodotScriptClass
def _exit_tree(): Unit

EditorPlugin/Node: leaving the (editor) tree.

EditorPlugin/Node: leaving the (editor) tree.

Attributes

Inherited from:
GodotScriptClass
def _input(event: InputEvent): Unit

Called for every unhandled-or-not input event (Node._input).

Called for every unhandled-or-not input event (Node._input).

Attributes

Inherited from:
GodotScriptClass
def _parse_property(obj: GodotObject, varType: Long, name: String, hintType: Long, hintString: String, usage: Long, wide: Boolean): Boolean

EditorInspectorPlugin: inspect one property. Return true to take it over (after calling addPropertyEditor), false to let the default editor render.

EditorInspectorPlugin: inspect one property. Return true to take it over (after calling addPropertyEditor), false to let the default editor render.

Attributes

Inherited from:
GodotScriptClass
def _physics_process(delta: Double): Unit

Called every physics frame; delta is the fixed physics step.

Called every physics frame; delta is the fixed physics step.

Attributes

Inherited from:
GodotScriptClass
def _process(delta: Double): Unit

Called every rendered frame; delta is seconds since the last frame.

Called every rendered frame; delta is seconds since the last frame.

Attributes

Inherited from:
GodotScriptClass
def _ready(): Unit

Called when the node enters the scene tree and is ready.

Called when the node enters the scene tree and is ready.

Attributes

Inherited from:
GodotScriptClass
def _shortcut_input(event: InputEvent): Unit

Called for shortcut input before _unhandled_input (Node._shortcut_input).

Called for shortcut input before _unhandled_input (Node._shortcut_input).

Attributes

Inherited from:
GodotScriptClass
def _unhandled_input(event: InputEvent): Unit

Called for input not consumed by the UI (Node._unhandled_input).

Called for input not consumed by the UI (Node._unhandled_input).

Attributes

Inherited from:
GodotScriptClass
def _unhandled_key_input(event: InputEvent): Unit

Called for unhandled key input (Node._unhandled_key_input).

Called for unhandled key input (Node._unhandled_key_input).

Attributes

Inherited from:
GodotScriptClass
def _update_property(): Unit

EditorProperty: refresh the widget from the edited property's value.

EditorProperty: refresh the widget from the edited property's value.

Attributes

Inherited from:
GodotScriptClass
final def canTranslateMessages(): Boolean

Object.can_translate_messages

Object.can_translate_messages

Attributes

Inherited from:
Object
final def cancelFree(): Unit

Object.cancel_free

Object.cancel_free

Attributes

Inherited from:
Object
def cast[U <: GodotScriptClass](using meta: ClassMeta[U]): U

Cast to a (super- or sub-) class U. Returns null if the object is not actually a U. Uses object_cast_to with U's class tag — a real engine type check, not a Scala cast.

Cast to a (super- or sub-) class U. Returns null if the object is not actually a U. Uses object_cast_to with U's class tag — a real engine type check, not a Scala cast.

Attributes

Inherited from:
GodotScriptClass
final def duplicate(deep: Boolean): Resource

Resource.duplicate. Returns an owned reference: release it with unref() or inside Gd.scoped.

Resource.duplicate. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

Inherited from:
Resource
final def duplicateDeep(deep_subresources_mode: Long): Resource

Resource.duplicate_deep. Returns an owned reference: release it with unref() or inside Gd.scoped.

Resource.duplicate_deep. Returns an owned reference: release it with unref() or inside Gd.scoped.

Attributes

Inherited from:
Resource
final def emitChanged(): Unit

Resource.emit_changed

Resource.emit_changed

Attributes

Inherited from:
Resource
def free(): Unit

Free a manually-managed object via object_destroy. No-op for reference-counted objects — use unref for those. The wrapper is dead afterwards: calling an engine method on it throws.

Free a manually-managed object via object_destroy. No-op for reference-counted objects — use unref for those. The wrapper is dead afterwards: calling an engine method on it throws.

Attributes

Inherited from:
GodotScriptClass
final def getIdForPath(path: String): String

Resource.get_id_for_path

Resource.get_id_for_path

Attributes

Inherited from:
Resource
final def getInstanceId(): Long

Object.get_instance_id

Object.get_instance_id

Attributes

Inherited from:
Object
final def getLocalScene(): Node

Resource.get_local_scene

Resource.get_local_scene

Attributes

Inherited from:
Resource
final def getMethodArgumentCount(method: StringName): Long

Object.get_method_argument_count

Object.get_method_argument_count

Attributes

Inherited from:
Object
final def getName(): String

Resource.get_name

Resource.get_name

Attributes

Inherited from:
Resource
final def getPath(): String

Resource.get_path

Resource.get_path

Attributes

Inherited from:
Resource
final def getReferenceCount(): Long

RefCounted.get_reference_count

RefCounted.get_reference_count

Attributes

Inherited from:
RefCounted
final def getSceneUniqueId(): String

Resource.get_scene_unique_id

Resource.get_scene_unique_id

Attributes

Inherited from:
Resource

Object.get_translation_domain

Object.get_translation_domain

Attributes

Inherited from:
Object
final def hasConnections(signal: StringName): Boolean

Object.has_connections

Object.has_connections

Attributes

Inherited from:
Object
final def hasMeta(name: StringName): Boolean

Object.has_meta

Object.has_meta

Attributes

Inherited from:
Object
final def hasMethod(method: StringName): Boolean

Object.has_method

Object.has_method

Attributes

Inherited from:
Object
final def hasSignal(signal: StringName): Boolean

Object.has_signal

Object.has_signal

Attributes

Inherited from:
Object
final def hasUserSignal(signal: StringName): Boolean

Object.has_user_signal

Object.has_user_signal

Attributes

Inherited from:
Object
final def hostObject: GodotObject

The engine-side object handle for this instance.

The engine-side object handle for this instance.

Attributes

Inherited from:
GodotScriptClass
final def initRef(): Boolean

RefCounted.init_ref

RefCounted.init_ref

Attributes

Inherited from:
RefCounted
final def instanceId: InstanceId

This object's stable Godot InstanceId (the null sentinel if unbound). Mirrors Object.get_instance_id, but typed — pass it to APIs that key off a node's identity.

This object's stable Godot InstanceId (the null sentinel if unbound). Mirrors Object.get_instance_id, but typed — pass it to APIs that key off a node's identity.

Attributes

Inherited from:
GodotScriptClass
final def isBlockingSignals(): Boolean

Object.is_blocking_signals

Object.is_blocking_signals

Attributes

Inherited from:
Object
final def isBuiltIn(): Boolean

Resource.is_built_in

Resource.is_built_in

Attributes

Inherited from:
Resource
final def isClass(`class`: String): Boolean

Object.is_class

Object.is_class

Attributes

Inherited from:
Object
final def isLocalToScene(): Boolean

Resource.is_local_to_scene

Resource.is_local_to_scene

Attributes

Inherited from:
Resource
final def isQueuedForDeletion(): Boolean

Object.is_queued_for_deletion

Object.is_queued_for_deletion

Attributes

Inherited from:
Object
final def isRefCounted: Boolean

True if this object is reference-counted (RefCounted subtree, e.g. a Resource) vs manually-managed (Object/Node subtree). Drives the lifetime methods below.

True if this object is reference-counted (RefCounted subtree, e.g. a Resource) vs manually-managed (Object/Node subtree). Drives the lifetime methods below.

Attributes

Inherited from:
GodotScriptClass
def keep(): this.type

Keep a reference adopted inside Gd.scoped past the end of the block: the caller now owns it and releases it with unref. Returns this.

Keep a reference adopted inside Gd.scoped past the end of the block: the caller now owns it and releases it with unref. Returns this.

Attributes

Inherited from:
GodotScriptClass
final def notification(what: Long, reversed: Boolean): Unit

Object.notification

Object.notification

Attributes

Inherited from:
Object
final def notifyPropertyListChanged(): Unit

Object.notify_property_list_changed

Object.notify_property_list_changed

Attributes

Inherited from:
Object
final def propertyCanRevert(property: StringName): Boolean

Object.property_can_revert

Object.property_can_revert

Attributes

Inherited from:
Object
def refInc(): this.type

Take one more reference on a reference-counted object, owned by this wrapper until a matching unref. No-op for manually-managed objects (nodes). Returns this. (Named refInc rather than reference to avoid clashing with the generated RefCounted.reference(): Boolean method.)

Take one more reference on a reference-counted object, owned by this wrapper until a matching unref. No-op for manually-managed objects (nodes). Returns this. (Named refInc rather than reference to avoid clashing with the generated RefCounted.reference(): Boolean method.)

Attributes

Inherited from:
GodotScriptClass
final def reference(): Boolean

RefCounted.reference

RefCounted.reference

Attributes

Inherited from:
RefCounted
final def removeMeta(name: StringName): Unit

Object.remove_meta

Object.remove_meta

Attributes

Inherited from:
Object
final def removeUserSignal(signal: StringName): Unit

Object.remove_user_signal

Object.remove_user_signal

Attributes

Inherited from:
Object
final def resetState(): Unit

Resource.reset_state

Resource.reset_state

Attributes

Inherited from:
Resource
final def setBlockSignals(enable: Boolean): Unit

Object.set_block_signals

Object.set_block_signals

Attributes

Inherited from:
Object
final def setIdForPath(path: String, id: String): Unit

Resource.set_id_for_path

Resource.set_id_for_path

Attributes

Inherited from:
Resource
final def setLocalToScene(enable: Boolean): Unit

Resource.set_local_to_scene

Resource.set_local_to_scene

Attributes

Inherited from:
Resource
final def setMessageTranslation(enable: Boolean): Unit

Object.set_message_translation

Object.set_message_translation

Attributes

Inherited from:
Object
final def setName(name: String): Unit

Resource.set_name

Resource.set_name

Attributes

Inherited from:
Resource
final def setPath(path: String): Unit

Resource.set_path

Resource.set_path

Attributes

Inherited from:
Resource
final def setPathCache(path: String): Unit

Resource.set_path_cache

Resource.set_path_cache

Attributes

Inherited from:
Resource
final def setSceneUniqueId(id: String): Unit

Resource.set_scene_unique_id

Resource.set_scene_unique_id

Attributes

Inherited from:
Resource
final def setTranslationDomain(domain: StringName): Unit

Object.set_translation_domain

Object.set_translation_domain

Attributes

Inherited from:
Object
final def setupLocalToScene(): Unit

Resource.setup_local_to_scene

Resource.setup_local_to_scene

Attributes

Inherited from:
Resource
final def takeOverPath(path: String): Unit

Resource.take_over_path

Resource.take_over_path

Attributes

Inherited from:
Resource
final def tr(message: StringName, context: StringName): String

Object.tr

Object.tr

Attributes

Inherited from:
Object
final def trN(message: StringName, plural_message: StringName, n: Long, context: StringName): String

Object.tr_n

Object.tr_n

Attributes

Inherited from:
Object
def unref(): Unit

Release one reference this wrapper owns (an engine Ref<T> return, Gd.create, or refInc), destroying the object if it was the last reference. Does nothing when the wrapper owns no reference, so a borrowed object can never be freed from under the engine.

Release one reference this wrapper owns (an engine Ref<T> return, Gd.create, or refInc), destroying the object if it was the last reference. Does nothing when the wrapper owns no reference, so a borrowed object can never be freed from under the engine.

Attributes

Inherited from:
GodotScriptClass
final def unreference(): Boolean

RefCounted.unreference

RefCounted.unreference

Attributes

Inherited from:
RefCounted
final def withHost(o: GDExtensionObjectPtr): this.type

Set the handle and return this (fluent, for wrapping fetched objects).

Set the handle and return this (fluent, for wrapping fetched objects).

Attributes

Inherited from:
GodotScriptClass