MethodTweener

package
v0.0.0-...-80877a9 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package MethodTweener provides methods for working with MethodTweener 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
	AsMethodTweener() Instance
}

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 New

func New() Instance

func (Instance) AsMethodTweener

func (self Instance) AsMethodTweener() Instance

func (Instance) AsObject

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

func (Instance) AsRefCounted

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

func (Instance) AsTweener

func (self Instance) AsTweener() Tweener.Instance

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.

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

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