Documentation
¶
Overview ¶
This animation node may contain a sub-tree of any other type animation nodes, such as graphics.gd/classdb/AnimationNodeTransition, graphics.gd/classdb/AnimationNodeBlend2, graphics.gd/classdb/AnimationNodeBlend3, graphics.gd/classdb/AnimationNodeOneShot, etc. This is one of the most commonly used animation node roots.
An graphics.gd/classdb/AnimationNodeOutput node named output is created by default.
Index ¶
- type Advanced
- type Any
- type Expanded
- type Extension
- func (self *Extension[T]) AsAnimationNode() AnimationNode.Instance
- func (self *Extension[T]) AsAnimationNodeBlendTree() Instance
- func (self *Extension[T]) AsAnimationRootNode() AnimationRootNode.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
- func (self *Extension[T]) AsResource() Resource.Instance
- type ID
- type Instance
- func (self Instance) AddNode(name string, node AnimationNode.Instance)
- func (self Instance) AsAnimationNode() AnimationNode.Instance
- func (self Instance) AsAnimationNodeBlendTree() Instance
- func (self Instance) AsAnimationRootNode() AnimationRootNode.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) ConnectNode(input_node string, input_index int, output_node string)
- func (self Instance) DisconnectNode(input_node string, input_index int)
- func (self Instance) GetNode(name string) AnimationNode.Instance
- func (self Instance) GetNodeList() []string
- func (self Instance) GetNodePosition(name string) Vector2.XY
- func (self Instance) GraphOffset() Vector2.XY
- func (self Instance) HasNode(name string) bool
- func (self Instance) ID() ID
- func (self Instance) OnNodeChanged(cb func(node_name string), flags ...Signal.Flags)
- func (self Instance) RemoveNode(name string)
- func (self Instance) RenameNode(name string, new_name string)
- func (self Instance) SetGraphOffset(value Vector2.XY)
- func (self Instance) SetNodePosition(name string, position Vector2.XY)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) Virtual(name string) reflect.Value
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 Expanded ¶
type Expanded [1]gdclass.AnimationNodeBlendTree
func (Expanded) AddNode ¶
Adds an graphics.gd/classdb/AnimationNode at the given 'position'. The 'name' is used to identify the created sub animation node later.
type Extension ¶
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 (*Extension[T]) AsAnimationRootNode ¶
func (self *Extension[T]) AsAnimationRootNode() AnimationRootNode.Instance
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
type 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.
type Instance ¶
type Instance [1]gdclass.AnimationNodeBlendTree
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddNode ¶
func (self Instance) AddNode(name string, node AnimationNode.Instance)
Adds an graphics.gd/classdb/AnimationNode at the given 'position'. The 'name' is used to identify the created sub animation node later.
func (Instance) AsAnimationNode ¶
func (self Instance) AsAnimationNode() AnimationNode.Instance
func (Instance) AsAnimationNodeBlendTree ¶
func (Instance) AsAnimationRootNode ¶
func (self Instance) AsAnimationRootNode() AnimationRootNode.Instance
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) ConnectNode ¶
Connects the output of an graphics.gd/classdb/AnimationNode as input for another graphics.gd/classdb/AnimationNode, at the input port specified by 'input_index'.
func (Instance) DisconnectNode ¶
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 'name'.
func (Instance) GetNodeList ¶
Returns a list containing the names of all sub animation nodes in this blend tree.
func (Instance) GetNodePosition ¶
Returns the position of the sub animation node with the specified 'name'.
func (Instance) GraphOffset ¶
func (Instance) OnNodeChanged ¶
func (Instance) RemoveNode ¶
Removes a sub animation node.
func (Instance) RenameNode ¶
Changes the name of a sub animation node.
func (Instance) SetGraphOffset ¶
func (Instance) SetNodePosition ¶
Modifies the position of a sub animation node.