Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CommandEventBase<T>

Base class for command events.
Read time 2 minutesLast updated 4 days ago

Definition

public abstract class CommandEventBase<T> : EventBase<T>, IDisposable, ICommandEvent where T : CommandEventBase<T>, new()

Remarks

Command events are only available on Editor-type Panels.
Refer to the Command events manual page for more information and examples.

Properties

Property

Description

commandNameThe command to validate or execute.

Methods

Method

Description

InitResets the event members to their initial values.

Static Methods

Method

Description

GetPooledGets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use
Dispose()
to release them.

Inheritance