private void OnValidate() { GUI = new EventAreaGUIHandler(this); EventAreaProperties.GetProperties(ref properties); GUI.OnValidate(); UnhideObjects(); EditorUtility.SetDirty(transform.gameObject); SceneView.RepaintAll(); if (UpdateArea) { UpdateEventArea(); } }
private void OnEnable() { GUI = new EventAreaGUIHandler(this); collidersData = new CollidersData(); }