Skip to content

SpriteFrames LoopModeEnum

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

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

Field Value
Full name Electron2D.SpriteFrames.LoopModeEnum
Namespace Electron2D
Kind enum
Category Animation and Tweening

Overview

Describes how an animation loops at its boundaries.

Syntax

public enum Electron2D.SpriteFrames.LoopModeEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Godot 4.7 C# profile compatibility

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

Loop mode values for none, linear and pingpong playback.

Remarks

The values are used by Electron2D.AnimatedSprite2D when playback reaches the first or last frame of an animation.

Since

This enum is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Linear Enum value The animation wraps to the opposite end and continues in the same direction.
None Enum value The animation stops when playback reaches the first or last frame.
Pingpong Enum value The animation changes direction each time playback reaches the first or last frame.

Member Details

Linear

Kind: Enum value

public const Electron2D.SpriteFrames.LoopModeEnum Linear

Summary

The animation wraps to the opposite end and continues in the same direction.

Remarks

Use this value with APIs that accept LoopModeEnum.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.SpriteFrames.LoopModeEnum

None

Kind: Enum value

public const Electron2D.SpriteFrames.LoopModeEnum None

Summary

The animation stops when playback reaches the first or last frame.

Remarks

Use this value with APIs that accept LoopModeEnum.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.SpriteFrames.LoopModeEnum

Pingpong

Kind: Enum value

public const Electron2D.SpriteFrames.LoopModeEnum Pingpong

Summary

The animation changes direction each time playback reaches the first or last frame.

Remarks

Use this value with APIs that accept LoopModeEnum.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.SpriteFrames.LoopModeEnum

Clone this wiki locally