Method OnEnable OnEnable() Initializes the attributes and styling of the editor based on the serialized data, when the object becomes active. Declaration protected virtual void OnEnable()