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(); }
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 }