Skip to content

ExportAttribute

Eduard Gushchin edited this page Jun 24, 2026 · 5 revisions

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

Field Value
Full name Electron2D.ExportAttribute
Namespace Electron2D
Kind class
Category Scripting Metadata

Overview

Marks a script field or property as an exported value that can be serialized and shown by editor tooling.

Syntax

public sealed class Electron2D.ExportAttribute : System.Attribute

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: ExportAttribute / [Export]

Marker attribute for script fields/properties included in explicit serialization and Inspector metadata.

Remarks

Use this attribute on ordinary C# script classes that inherit from Electron2D.Node or another Electron2D node type. The attribute is a public marker for user code and source-generated metadata.

Electron2D 0.1.0 Preview does not scan assemblies at runtime to discover exported members. Serialization and Inspector tooling use explicit internal metadata generated or registered for a script type.

The attribute is immutable and is safe to read from any thread.

Thread Safety

Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.

Since

This attribute is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.SignalAttribute
  • Electron2D.ToolAttribute

Members

Member Kind Summary
Electron2D.ExportAttribute() Constructor Initializes a new instance of the ExportAttribute type.

Member Details

Electron2D.ExportAttribute()

Kind: Constructor

public Electron2D.ExportAttribute()

Summary

Initializes a new instance of the ExportAttribute type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.ExportAttribute

Clone this wiki locally