Method OnEnable OnEnable() Unity calls this method when it loads the class. Declaration protected virtual void OnEnable() Remarks If you want to override this method, you must call base.OnEnable().