Documentation
¶
Overview ¶
Package AnimationNodeBlendTree provides methods for working with AnimationNodeBlendTree object instances.
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) 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
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
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 (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 (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 [AnimationNode] as input for another [AnimationNode], at the input port specified by [param 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 [param name].
func (Instance) GetNodePosition ¶
Returns the position of the sub animation node with the specified [param name].
func (Instance) GraphOffset ¶
func (Instance) HasNode ¶
Returns [code]true[/code] if a sub animation node with specified [param name] exists.
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.