AnimationNodeBlendSpace1D

package
v0.0.0-...-ad02d68 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

A resource used by [AnimationNodeBlendTree]. [AnimationNodeBlendSpace1D] represents a virtual axis on which any type of [AnimationRootNode]s can be added using Instance.AddBlendPoint. Outputs the linear blend of the two [AnimationRootNode]s adjacent to the current value. You can set the extents of the axis with [member min_space] and [member max_space].

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
	AsAnimationNodeBlendSpace1D() Instance
}

type BlendMode

type BlendMode int //gd:AnimationNodeBlendSpace1D.BlendMode
const (
	/*The interpolation between animations is linear.*/
	BlendModeInterpolated BlendMode = 0
	/*The blend space plays the animation of the animation node which blending position is closest to. Useful for frame-by-frame 2D animations.*/
	BlendModeDiscrete BlendMode = 1
	/*Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position.*/
	BlendModeDiscreteCarry BlendMode = 2
)

type Expanded

func (Expanded) AddBlendPoint

func (self Expanded) AddBlendPoint(node AnimationRootNode.Instance, pos Float.X, at_index int)

Adds a new point that represents a 'node' on the virtual axis at a given position set by 'pos'. You can insert it at a specific index using the 'at_index' argument. If you use the default value for 'at_index', the point is inserted at the end of the blend points array.

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]) AsAnimationNodeBlendSpace1D

func (self *Extension[T]) AsAnimationNodeBlendSpace1D() 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

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 New

func New() Instance

func (Instance) AddBlendPoint

func (self Instance) AddBlendPoint(node AnimationRootNode.Instance, pos Float.X)

Adds a new point that represents a 'node' on the virtual axis at a given position set by 'pos'. You can insert it at a specific index using the 'at_index' argument. If you use the default value for 'at_index', the point is inserted at the end of the blend points array.

func (Instance) AsAnimationNode

func (self Instance) AsAnimationNode() AnimationNode.Instance

func (Instance) AsAnimationNodeBlendSpace1D

func (self Instance) AsAnimationNodeBlendSpace1D() 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) BlendMode

func (self Instance) BlendMode() BlendMode

func (Instance) GetBlendPointCount

func (self Instance) GetBlendPointCount() int

Returns the number of points on the blend axis.

func (Instance) GetBlendPointNode

func (self Instance) GetBlendPointNode(point int) AnimationRootNode.Instance

Returns the [AnimationNode] referenced by the point at index 'point'.

func (Instance) GetBlendPointPosition

func (self Instance) GetBlendPointPosition(point int) Float.X

Returns the position of the point at index 'point'.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) MaxSpace

func (self Instance) MaxSpace() Float.X

func (Instance) MinSpace

func (self Instance) MinSpace() Float.X

func (Instance) RemoveBlendPoint

func (self Instance) RemoveBlendPoint(point int)

Removes the point at index 'point' from the blend axis.

func (Instance) SetBlendMode

func (self Instance) SetBlendMode(value BlendMode)

func (Instance) SetBlendPointNode

func (self Instance) SetBlendPointNode(point int, node AnimationRootNode.Instance)

Changes the [AnimationNode] referenced by the point at index 'point'.

func (Instance) SetBlendPointPosition

func (self Instance) SetBlendPointPosition(point int, pos Float.X)

Updates the position of the point at index 'point' on the blend axis.

func (Instance) SetMaxSpace

func (self Instance) SetMaxSpace(value Float.X)

func (Instance) SetMinSpace

func (self Instance) SetMinSpace(value Float.X)

func (*Instance) SetObject

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

func (Instance) SetSnap

func (self Instance) SetSnap(value Float.X)

func (Instance) SetSync

func (self Instance) SetSync(value bool)

func (Instance) SetValueLabel

func (self Instance) SetValueLabel(value string)

func (Instance) Snap

func (self Instance) Snap() Float.X

func (Instance) Sync

func (self Instance) Sync() bool

func (Instance) ValueLabel

func (self Instance) ValueLabel() string

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