Example #1
0
 protected override void Enable()
 {
     if (createNewPrefab)
     {
         // Create and save the new prefab
         var defaultPrefab = CreateDefaultPrefab();
         prefab = SavePrefab(defaultPrefab);
         MixtureUtils.DestroyGameObject(defaultPrefab);
         ProjectWindowUtil.ShowCreatedAsset(prefab);
     }
     UpdateRenderTextures();
 }
Example #2
0
        protected override void Enable()
        {
#if UNITY_EDITOR
            if (createNewPrefab)
            {
                // Create and save the new prefab
                var defaultPrefab = GameObject.Instantiate(LoadDefaultPrefab());
                prefab = SavePrefab(defaultPrefab);
                MixtureUtils.DestroyGameObject(defaultPrefab);
                ProjectWindowUtil.ShowCreatedAsset(prefab);
                EditorGUIUtility.PingObject(prefab);
            }
#endif
        }