Api Editor EditorEvent
class

EditorEvent

public static abstract sealed class EditorEvent

Methods

static Void Register(Object obj)

Register an object, start receiving events

static Void Unregister(Object obj)

Unregister an object, stop receiving events

static Void Run(String name)

Run an event.

static Void Run(String name, T arg0)

Run an event with an argument of arbitrary type.

name — Name of the event to run.
arg0 — Argument to pass down to event handlers.
static Void Run(String name, T arg0, U arg1)

Run an event with 2 arguments of arbitrary type.

name — Name of the event to run.
arg0 — First argument to pass down to event handlers.
arg1 — Second argument to pass down to event handlers.
static Void RunInterface(Action<T> action)
static Void Run(String name, T arg0, U arg1, V arg2)

Run an event with 3 arguments of arbitrary type.

name — Name of the event to run.
arg0 — First argument to pass down to event handlers.
arg1 — Second argument to pass down to event handlers.
arg2 — Third argument to pass down to event handlers.
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.EditorEvent