[OnEditorEnable]

Attribute used for invoking a method when the custom Editor is enabled.

Examples

public class OnEditorEnableExample : MonoBehaviour
{
    [OnEditorEnable]
    private void HandleEditorEnable()
    {
        Debug.Log("Editor enabled for this component");
    }
}