AnimationNodeExtension
Experimental: This class may be changed or removed in future versions.
Hereda: AnimationNode < Resource < RefCounted < Object
Clase base para extender AnimationRootNodes desde GDScript, C# o C++.
Descripción
AnimationNodeExtension expone las APIs de AnimationRootNode para permitir a los usuarios extenderlo desde GDScript, C# o C++. Esta clase no está pensada para ser usada directamente, sino para ser extendida por otras clases. Se usa para crear nodos personalizados para el sistema AnimationTree.
Métodos
_process_animation_node(playback_info: PackedFloat64Array, test_only: bool) virtual required |
|
get_remaining_time(node_info: PackedFloat32Array, break_loop: bool) static |
|
is_looping(node_info: PackedFloat32Array) static |
Descripciones de Métodos
PackedFloat32Array _process_animation_node(playback_info: PackedFloat64Array, test_only: bool) virtual required 🔗
A version of the AnimationNode._process() method that is meant to be overridden by custom nodes. It returns a PackedFloat32Array with the processed animation data.
The PackedFloat64Array parameter contains the playback information, containing the following values encoded as floating point numbers (in order): playback time and delta, start and end times, whether a seek was requested (encoded as a float greater than 0), whether the seek request was externally requested (encoded as a float greater than 0), the current LoopedFlag (encoded as a float), and the current blend weight.
The function must return a PackedFloat32Array of the node's time info, containing the following values (in order): animation length, time position, delta, LoopMode (encoded as a float), whether the animation is about to end (encoded as a float greater than 0) and whether the animation is infinite (encoded as a float greater than 0). All values must be included in the returned array.
float get_remaining_time(node_info: PackedFloat32Array, break_loop: bool) static 🔗
Devuelve el tiempo restante de la animación para la información del nodo dada. Para animaciones en bucle, solo devolverá el tiempo restante si break_loop es true, de lo contrario se devolverá un valor entero grande.
bool is_looping(node_info: PackedFloat32Array) static 🔗
Devuelve true si la animación para el node_info dado está en bucle.