Skip to content

ToolAttribute

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

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

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

Overview

Marks a C# script class as capable of explicit editor-time execution.

Syntax

public sealed class Electron2D.ToolAttribute : System.Attribute

Remarks

Apply this attribute to a script class that inherits from Electron2D.Node when the class is intended to run inside editor tooling. In Electron2D 0.1.0 Preview, tool scripts are experimental and require explicit sandboxed metadata before editor-time callbacks can run.

Runtime traversal stays separate from editor-time execution. The internal tool execution host uses explicit metadata, isolates callback exceptions and does not discover scripts through runtime assembly scanning.

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.ExportAttribute
  • Electron2D.SignalAttribute

Members

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

Member Details

Electron2D.ToolAttribute()

Kind: Constructor

public Electron2D.ToolAttribute()

Summary

Initializes a new instance of the ToolAttribute 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.ToolAttribute

Clone this wiki locally