Skip to content

CallbackTweener

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.CallbackTweener
Namespace Electron2D
Kind class
Category Animation and Tweening

Overview

Calls a Electron2D.Callable when a tween sequence reaches this step.

Syntax

public sealed class Electron2D.CallbackTweener : Electron2D.Tweener

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: CallbackTweener

Tween step that invokes a Callable once when the sequence reaches it.

Remarks

The callback is invoked once per tween run. Calling Electron2D.Tween.Stop rewinds callback tweeners so they can be invoked again after Electron2D.Tween.Play.

Thread Safety

This type is not synchronized. Configure and process it on the main scene thread.

Since

This type is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Tween.TweenCallback(Electron2D.Callable)

Members

Member Kind Summary
SetDelay(System.Double) Method Sets a delay before this callback tweener runs.

Member Details

SetDelay(System.Double)

Kind: Method

public Electron2D.CallbackTweener SetDelay(System.Double)(System.Double delay)

Summary

Sets a delay before this callback tweener runs.

Remarks

The callback is invoked after the delay has elapsed and the sequence reaches this step.

Parameters

  • delay: The finite non-negative delay in seconds.

Returns

This callback tweener.

Exceptions

  • System.ArgumentOutOfRangeException: Thrown when delay is negative or not finite.

Thread Safety

This method is not synchronized. Call it on the main scene thread.

Since

This method is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.CallbackTweener

Clone this wiki locally