Class: ModeChangeAfterEventSignal
Manages callbacks that are connected to when a player editor mode changes.
Constructors
new ModeChangeAfterEventSignal()
private
new ModeChangeAfterEventSignal():ModeChangeAfterEventSignal
Returns
Methods
subscribe()
subscribe(
callback
): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | ModeChangeAfterEvent |
Returns
void
Remarks
Subscribes the specified callback to an editor mode change after event.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
void
Remarks
Removes the specified callback from an editor mode change after event.
This function can't be called in read-only mode.