AnimationNodeBlendTree

package
v0.0.0-...-568b220 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package AnimationNodeBlendTree provides methods for working with AnimationNodeBlendTree object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsAnimationNodeBlendTree() Instance
}

type Expanded

type Expanded [1]gdclass.AnimationNodeBlendTree

func (Expanded) AddNode

func (self Expanded) AddNode(name string, node AnimationNode.Instance, position Vector2.XY)

Adds an [AnimationNode] at the given [param position]. The [param name] is used to identify the created sub animation node later.

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension

func (*Extension[T]) AsAnimationNode

func (self *Extension[T]) AsAnimationNode() AnimationNode.Instance

func (*Extension[T]) AsAnimationNodeBlendTree

func (self *Extension[T]) AsAnimationNodeBlendTree() Instance

func (*Extension[T]) AsAnimationRootNode

func (self *Extension[T]) AsAnimationRootNode() AnimationRootNode.Instance

func (*Extension[T]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRefCounted

func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted

func (*Extension[T]) AsResource

func (self *Extension[T]) AsResource() Resource.Instance

type ID

type ID Object.ID

ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

type Instance [1]gdclass.AnimationNodeBlendTree

This animation node may contain a sub-tree of any other type animation nodes, such as [AnimationNodeTransition], [AnimationNodeBlend2], [AnimationNodeBlend3], [AnimationNodeOneShot], etc. This is one of the most commonly used animation node roots. An [AnimationNodeOutput] node named [code]output[/code] is created by default.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AddNode

func (self Instance) AddNode(name string, node AnimationNode.Instance)

Adds an [AnimationNode] at the given [param position]. The [param name] is used to identify the created sub animation node later.

func (Instance) AsAnimationNode

func (self Instance) AsAnimationNode() AnimationNode.Instance

func (Instance) AsAnimationNodeBlendTree

func (self Instance) AsAnimationNodeBlendTree() Instance

func (Instance) AsAnimationRootNode

func (self Instance) AsAnimationRootNode() AnimationRootNode.Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) ConnectNode

func (self Instance) ConnectNode(input_node string, input_index int, output_node string)

Connects the output of an [AnimationNode] as input for another [AnimationNode], at the input port specified by [param input_index].

func (Instance) DisconnectNode

func (self Instance) DisconnectNode(input_node string, input_index int)

Disconnects the animation node connected to the specified input.

func (Instance) GetNode

func (self Instance) GetNode(name string) AnimationNode.Instance

Returns the sub animation node with the specified [param name].

func (Instance) GetNodePosition

func (self Instance) GetNodePosition(name string) Vector2.XY

Returns the position of the sub animation node with the specified [param name].

func (Instance) GraphOffset

func (self Instance) GraphOffset() Vector2.XY

func (Instance) HasNode

func (self Instance) HasNode(name string) bool

Returns [code]true[/code] if a sub animation node with specified [param name] exists.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) OnNodeChanged

func (self Instance) OnNodeChanged(cb func(node_name string), flags ...Signal.Flags)

func (Instance) RemoveNode

func (self Instance) RemoveNode(name string)

Removes a sub animation node.

func (Instance) RenameNode

func (self Instance) RenameNode(name string, new_name string)

Changes the name of a sub animation node.

func (Instance) SetGraphOffset

func (self Instance) SetGraphOffset(value Vector2.XY)

func (Instance) SetNodePosition

func (self Instance) SetNodePosition(name string, position Vector2.XY)

Modifies the position of a sub animation node.

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL