Skip to content

API Reference

Eduard Gushchin edited this page Jun 22, 2026 · 16 revisions

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

Complete generated public type index for the Electron2D runtime assembly.

Type Index

Electron2D

Type Kind Summary
AnimatedSprite2D class Displays and advances a texture-frame animation from a Electron2D.AnimatedSprite2D.SpriteFrames resource.
Animation class Stores keyframed value and method-call tracks for Electron2D.AnimationPlayer.
Animation.InterpolationTypeEnum enum Describes how value tracks produce values between neighboring keys.
Animation.LoopModeEnum enum Describes how playback behaves when it reaches the end of the resource.
Animation.TrackTypeEnum enum Describes the supported animation track kinds.
AnimationLibrary class Stores named Electron2D.Animation resources for Electron2D.AnimationPlayer.
AnimationPlayer class Plays Electron2D.Animation resources against nodes in the scene tree.
Area2D class Provides an Electron2D 2D area node for overlap and influence queries.
AtlasTexture class Provides an Electron2D texture that draws a region of another Electron2D.Texture2D.
AudioServer class Provides process-wide audio device, bus and voice playback state.
AudioServer.SpeakerMode enum Identifies the speaker layout used by the active audio output.
AudioStream class Provides the base resource for audio data that can be played by audio nodes.
AudioStreamPlayer class Plays an Electron2D.AudioStream without positional attenuation.
AudioStreamPlayer2D class Plays an Electron2D.AudioStream as a sound source in 2D space.
BaseButton class Provides shared input, focus and signal behavior for button controls.
BaseButton.ActionModeEnum enum Identifies when a button emits its activation signal.
BoxContainer class Arranges direct child controls in a single horizontal or vertical line.
BoxContainerAlignmentMode enum Describes how a Electron2D.BoxContainer positions children when free space remains.
Button class Provides a text button control.
Callable struct Represents the callable value type.
CallbackTweener class Calls a Electron2D.Callable when a tween sequence reaches this step.
Camera2D class Provides the Electron2D 2D camera node for selecting the visible canvas region.
CanvasItem class Provides the Electron2D base node for items that can be drawn on a 2D canvas.
CanvasLayer class Provides an Electron2D node that renders 2D descendants on an independent canvas layer.
CapsuleShape2D class Provides a capsule-shaped 2D physics resource.
CenterContainer class Places direct child controls around the center of this container.
CharacterBody2D class Provides a 2D character body moved directly by user code.
CharacterBody2D.MotionModeEnum enum Identifies how collisions are classified during slide movement.
CharacterBody2D.PlatformOnLeaveEnum enum Identifies how platform velocity should be applied when leaving a platform.
CheckBox class Provides a toggle button with a check indicator and text.
CircleShape2D class Provides a circular 2D physics shape resource.
CollisionObject2D class Provides the Electron2D base node for 2D objects that own a physics server RID.
CollisionShape2D class Provides a node that attaches a Electron2D.Shape2D to a collision object.
Color struct Represents the color value type.
ConcavePolygonShape2D class Provides a concave polygon 2D physics shape resource backed by line segments.
ConnectFlags enum Identifies values used by the connect flags API.
Container class Provides the base control for nodes that arrange direct child controls.
Control class Provides the Electron2D base node for 2D user interface controls.
ConvexPolygonShape2D class Provides a convex polygon 2D physics shape resource.
DisplayServer class Provides display, orientation and virtual keyboard state.
DisplayServer.ScreenOrientation enum Identifies a requested screen orientation.
DisplayServer.VirtualKeyboardType enum Identifies the requested virtual keyboard layout.
Error enum Identifies values used by the error API.
ExportAttribute class Marks a script field or property as an exported value that can be serialized and shown by editor tooling.
FocusMode enum Identifies how a Electron2D.Control can receive keyboard, gamepad or mouse focus.
Font class Provides the Electron2D base resource for text layout and drawing.
GridContainer class Arranges direct child controls into rows and columns.
GrowDirection enum Describes which side of a Electron2D.Control moves when the control must grow to satisfy its minimum size.
HBoxContainer class Arranges direct child controls horizontally.
HorizontalAlignment enum Defines horizontal text alignment values used by Electron2D text drawing APIs.
Input class Provides process-wide action input state.
InputEvent class Base class for Electron2D input events delivered to Electron2D.Node._Input(Electron2D.InputEvent).
InputEventAction class Represents a direct action input event.
InputEventFromWindow class Base class for input events that originate from a platform window.
InputEventJoypadButton class Represents a gamepad button press or release.
InputEventJoypadMotion class Represents a gamepad axis motion event.
InputEventKey class Represents a keyboard key press, release, echo, or text input scalar value.
InputEventMouse class Base class for mouse input events.
InputEventMouseButton class Represents a mouse button press, release, or wheel step.
InputEventMouseMotion class Represents a mouse movement event.
InputEventScreenDrag class Represents a screen touch drag event.
InputEventScreenTouch class Represents a screen touch press, release or cancel event.
InputEventWithModifiers class Base class for input events that carry keyboard modifier state.
InputMap class Stores input actions and their input event bindings.
IntervalTweener class Consumes time inside a tween sequence without changing objects.
ItemList class Displays a selectable flat list of text and optional icon items.
ItemList.SelectModeEnum enum Identifies how many items can be selected at the same time.
JoyAxis enum Identifies a normalized gamepad axis.
JoyButton enum Identifies a standardized gamepad button.
Key enum Identifies a keyboard key in the Electron2D input event model.
KeyLocation enum Identifies the left or right location of a keyboard key.
KinematicCollision2D class Holds collision data returned by 2D body movement methods.
Label class Provides the Electron2D control for drawing a single line of plain text.
LineEdit class Provides a single-line text editing control.
MarginContainer class Places direct child controls inside theme-defined margins.
Material class Provides the Electron2D base resource for visual materials.
Mathf class Represents the mathf type.
MouseButton enum Identifies a mouse button or mouse wheel direction in the Electron2D input model.
MouseButtonMask enum Provides bit flags for mouse buttons held during a mouse event.
MouseFilter enum Identifies how a Electron2D.Control receives and consumes mouse input.
NinePatchRect class Provides a texture-backed UI rectangle with nine-patch margins.
NinePatchRect.AxisStretchModeEnum enum Identifies how the center segment of a nine-patch axis is expanded.
Node class Represents the node type.
Node2D class Provides the Electron2D 2D transform node used by sprites and future 2D nodes.
NodePath struct Represents the node path value type.
Object class Represents the object type.
PackedScene class Represents the packed scene type.
Panel class Provides a rectangular UI control used as a simple visual panel.
PhysicsBody2D class Provides the base node for physical 2D bodies that participate in collision queries.
PhysicsDirectSpaceState2D class Provides direct 2D physics queries for a Electron2D.World2D.
PhysicsMaterial class Provides an Electron2D physics material resource for 2D body collision behavior.
PhysicsPointQueryParameters2D class Stores parameters for Electron2D.PhysicsDirectSpaceState2D.IntersectPoint(Electron2D.PhysicsPointQueryParameters2D,System.Int32).
PhysicsRayQueryParameters2D class Stores parameters for Electron2D.PhysicsDirectSpaceState2D.IntersectRay(Electron2D.PhysicsRayQueryParameters2D).
PhysicsServer2D class Provides the Electron2D server boundary for low-level 2D physics objects.
PhysicsServer2D.ProcessInfo enum Identifies a physics process statistic that can be queried from the server.
PhysicsServer2D.ShapeType enum Identifies the shape resource kind stored by the physics server.
PhysicsServer2D.SpaceParameter enum Identifies a configurable parameter of a physics space.
PhysicsShapeQueryParameters2D class Stores parameters for Electron2D.PhysicsDirectSpaceState2D.IntersectShape(Electron2D.PhysicsShapeQueryParameters2D,System.Int32).
PopupMenu class Displays a temporary menu of command items.
ProgressBar class Provides a read-only visual progress indicator.
PropertyTweener class Tweens a public property or field on an object.
RandomNumberGenerator class Represents the random number generator type.
Range class Provides a numeric value with minimum, maximum, step and ratio state.
RayCast2D class Provides an Electron2D 2D raycast node.
Rect2 struct Represents the rect2 value type.
Rect2I struct Represents the rect2 i value type.
RectangleShape2D class Provides a rectangular 2D physics shape resource.
RefCounted class Represents the ref counted type.
RenderingServer class Provides the Electron2D server boundary for rendering capabilities.
RenderingServer.RenderingFeature enum Identifies a renderer feature that can be queried at runtime.
RenderingServer.RenderingProfile enum Identifies the active renderer profile.
Resource class Represents the resource type.
ResourceUid class Manages stable unique identifiers for resource paths in an Electron2D project.
Rid struct Represents the rid value type.
RigidBody2D class Provides an Electron2D rigid 2D physics body.
RigidBody2D.CenterOfMassModeEnum enum Identifies how the body's center of mass should be selected.
RigidBody2D.FreezeModeEnum enum Identifies how a frozen rigid body should interact with the simulation.
SceneTree class Represents the scene tree type.
ScrollContainer class Clips and scrolls direct child controls inside a viewport-sized rectangle.
ScrollHintMode enum Describes which scroll hint edges a Electron2D.ScrollContainer may expose.
ScrollMode enum Describes how a Electron2D.ScrollContainer exposes scrolling on one axis.
SegmentShape2D class Provides a finite line segment 2D physics shape resource.
Shader class Provides the Electron2D resource for a canvas shader source.
Shader.Mode enum Identifies the shader mode.
ShaderMaterial class Provides the Electron2D material resource backed by a custom Electron2D.ShaderMaterial.Shader.
Shape2D class Provides the Electron2D base resource for 2D physics shapes.
SignalAttribute class Marks a script delegate declaration as a signal that can be registered on an Electron2D object and emitted through Electron2D.Object.EmitSignal(System.String,System.Object[]).
SizeFlags enum Describes how a Electron2D.Control uses space allocated by a parent Electron2D.Container.
Slider class Provides an editable horizontal slider control.
Sprite2D class Provides a node that submits a 2D texture for drawing.
SpriteFrames class Stores named texture-frame animations for Electron2D.AnimatedSprite2D.
SpriteFrames.LoopModeEnum enum Describes how an animation loops at its boundaries.
StaticBody2D class Provides an Electron2D static 2D physics body.
StringName struct Represents the string name value type.
StyleBox class Provides the base resource for drawing themed UI boxes.
StyleBoxFlat class Provides a rectangle style box with a fill color and optional borders.
TabContainer class Displays direct child controls as selectable tab pages.
TabContainer.AlignmentModeEnum enum Identifies how tabs are aligned inside the tab header.
TabContainer.TabPositionEnum enum Identifies where the tab header is placed.
Texture2D class Provides the Electron2D base resource for 2D textures.
TextureButton class Provides a button that draws textures for its visual states.
TextureButton.StretchModeEnum enum Identifies how a texture button scales its selected texture.
TextureRect class Provides a control that draws a texture inside its rectangle.
TextureRect.ExpandModeEnum enum Identifies how texture size contributes to minimum size.
TextureRect.StretchModeEnum enum Identifies how a texture is drawn inside the control rectangle.
Theme class Provides a reusable resource for styling UI controls.
TileData class Stores per-tile metadata consumed by Electron2D.TileMapLayer.
TileMapLayer class Provides a single 2D tilemap layer.
TileSet class Stores tile sources and shared tilemap settings.
TileSetAtlasSource class Provides a tile set source backed by a texture atlas.
TileSetSource class Provides the base resource for entries stored inside a Electron2D.TileSet.
ToolAttribute class Marks a C# script class as capable of explicit editor-time execution.
Transform2D struct Represents the transform2 d value type.
Translation class Stores translated messages for one locale.
TranslationServer class Provides process-wide translation lookup and locale selection.
Tree class Displays selectable Electron2D.TreeItem objects in a hierarchy.
Tree.SelectModeEnum enum Identifies how tree item selection is interpreted.
TreeItem class Stores one row of data inside a Electron2D.Tree control.
Tween class Runs sequential property, interval and callback animation steps.
Tween.EaseType enum Lists how a transition curve is applied to normalized time.
Tween.TransitionType enum Lists transition curves available to tween interpolation.
Tweener class Represents one step in a Electron2D.Tween sequence.
VBoxContainer class Arranges direct child controls vertically.
Variant struct Stores one value from the closed Electron2D 0.1.0 Preview Variant type set.
Variant.Type enum Identifies the type currently stored in a Electron2D.Variant.
Vector2 struct Represents the vector2 value type.
Vector2I struct Represents the vector2 i value type.
VerticalAlignment enum Identifies the vertical alignment used by controls that draw text.
Viewport class Provides the Electron2D viewport node for 2D camera selection and canvas transforms.
ViewportTexture class Provides an Electron2D dynamic texture for the contents of a Electron2D.Viewport.
World2D class Provides access to the 2D world associated with a canvas item.

Electron2D.Collections

Type Kind Summary
Collections.Array class Stores an ordered mutable list of Electron2D.Variant values.
Collections.Dictionary class Stores mutable key/value pairs where both keys and values are Electron2D.Variant.

Clone this wiki locally