Beispiel #1
0
 void OnValidate()
 {
     if (EditorBridge.OnValidate != null)
     {
         EditorBridge.OnValidate(this);
     }
 }
        void OnValidate()
        {
#if UNITY_EDITOR
#if PE_STRIP
            if (Utils.IsBuildingPlayer)
            {
                _prefabInternalData = new PrefabInternalData(this);
                ClearInternalData();
            }
            if (!Utils.IsBuildingPlayer && PrefabGUID == "STRIPPED")
            {
                Debug.LogError("Prefab internal data stripping error");
            }
#endif
#endif
            if (EditorBridge.OnValidate != null)
            {
                EditorBridge.OnValidate(this);
            }
        }