Documentation
¶
Overview ¶
Package MethodTweener provides methods for working with MethodTweener object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AsMethodTweener() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsTweener() Tweener.Instance
- func (self Instance) SetDelay(delay Float.X) [1]gdclass.MethodTweener
- func (self Instance) SetEase(ease gdclass.TweenEaseType) [1]gdclass.MethodTweener
- func (self Instance) SetTrans(trans gdclass.TweenTransitionType) [1]gdclass.MethodTweener
- func (self *Instance) UnsafePointer() unsafe.Pointer
- 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 Instance ¶
type Instance [1]gdclass.MethodTweener
[MethodTweener] is similar to a combination of [CallbackTweener] and [PropertyTweener]. It calls a method providing an interpolated value as a parameter. See [method Tween.tween_method] for more usage information. The tweener will finish automatically if the callback's target object is freed. [b]Note:[/b] [method Tween.tween_method] is the only correct way to create [MethodTweener]. Any [MethodTweener] created manually will not function correctly.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsMethodTweener ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) SetDelay ¶
func (self Instance) SetDelay(delay Float.X) [1]gdclass.MethodTweener
Sets the time in seconds after which the [MethodTweener] will start interpolating. By default there's no delay.
func (Instance) SetEase ¶
func (self Instance) SetEase(ease gdclass.TweenEaseType) [1]gdclass.MethodTweener
Sets the type of used easing from [enum Tween.EaseType]. If not set, the default easing is used from the [Tween] that contains this Tweener.
func (Instance) SetTrans ¶
func (self Instance) SetTrans(trans gdclass.TweenTransitionType) [1]gdclass.MethodTweener
Sets the type of used transition from [enum Tween.TransitionType]. If not set, the default transition is used from the [Tween] that contains this Tweener.