public static void GetProperties(ref EventAreaProperties _properties)
    {
        if (_properties != null)
        {
            return;
        }

        //This might give an error when opening Unity which is OK
        _properties = GetEventAreaProperties();
    }
    private void OnValidate()
    {
        GUI = new EventAreaGUIHandler(this);
        EventAreaProperties.GetProperties(ref properties);
        GUI.OnValidate();

        UnhideObjects();
        EditorUtility.SetDirty(transform.gameObject);
        SceneView.RepaintAll();

        if (UpdateArea)
        {
            UpdateEventArea();
        }
    }
Exemplo n.º 3
0
 private void CreateGUIHandler()
 {
     GUIHandler = new EventCapsuleGUIHandler(this);
     EventAreaProperties.GetProperties(ref properties);
 }