-
Notifications
You must be signed in to change notification settings - Fork 0
SignalAttribute
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.SignalAttribute |
| Namespace | Electron2D |
| Kind | class |
| Category | Scripting Metadata |
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[]).
public sealed class Electron2D.SignalAttribute : System.AttributeProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: SignalAttribute / [Signal]
Marker attribute for script delegates backed by explicit signal metadata and the existing Connect()/EmitSignal() API.
Use this attribute on delegate declarations inside C# script classes. The
delegate describes the signal payload for tooling and generated metadata.
Runtime emission still uses the existing signal API:
Electron2D.Object.AddUserSignal(System.String), Electron2D.Object.Connect(System.String,Electron2D.Callable,Electron2D.ConnectFlags)
and Electron2D.Object.EmitSignal(System.String,System.Object[]).
Electron2D 0.1.0 Preview does not expose .NET events as script signals and does not scan assemblies for signal delegates at runtime. Signal metadata is supplied explicitly for AOT-safe registration.
The attribute is immutable and is safe to read from any thread.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This attribute is available since Electron2D 0.1.0 Preview.
Electron2D.ExportAttributeElectron2D.ToolAttribute
| Member | Kind | Summary |
|---|---|---|
Electron2D.SignalAttribute() |
Constructor | Initializes a new instance of the SignalAttribute type. |
Kind: Constructor
public Electron2D.SignalAttribute()Initializes a new instance of the SignalAttribute type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SignalAttribute
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.