Language
Edit

DataConsumerGOBase.OnEnable Method

Definition

A Unity event function that is called when the script component has been enabled.

public virtual void OnEnable();
abstract member OnEnable : unit -> unit
override this.OnEnable : unit -> unit
Public Overridable Sub OnEnable ()

Remarks

Note that this should rarely be overridden but is declared virtual for circumstances where this is required. If overridden, make sure to call this default behavior.

Any initialization should be accomplished by overriding InitializeDataConsumer().

Applies to