From d8849e7a8e3174a02ab7a2b313b95e0eae34693e Mon Sep 17 00:00:00 2001 From: Adrien de Tocqueville Date: Fri, 23 Oct 2020 10:13:47 +0200 Subject: [PATCH] Remove useless menu entry --- .../Reflection/HDProbeUI.ContextualMenu.cs | 38 ------------------- .../HDProbeUI.ContextualMenu.cs.meta | 11 ------ 2 files changed, 49 deletions(-) delete mode 100644 com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs delete mode 100644 com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs.meta diff --git a/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs b/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs deleted file mode 100644 index e0661bd6172..00000000000 --- a/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs +++ /dev/null @@ -1,38 +0,0 @@ -using UnityEngine; -using UnityEngine.Rendering; -using UnityEngine.Rendering.HighDefinition; - -namespace UnityEditor.Rendering.HighDefinition -{ - static partial class HDProbeUI - { - [MenuItem("GameObject/3D Object/Mirror", priority = CoreUtils.gameObjectMenuPriority)] - static void CreateMirrorGameObject(MenuCommand menuCommand) - { - GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane); - GameObjectUtility.SetParentAndAlign(plane, menuCommand.context as GameObject); - Undo.RegisterCreatedObjectUndo(plane, "Create " + plane.name); - Selection.activeObject = plane; - - var planarProbe = plane.AddComponent(); - planarProbe.influenceVolume.boxSize = new Vector3(10, 0.01f, 10); - - var hdrp = HDRenderPipeline.defaultAsset; - var material = hdrp != null ? hdrp.GetDefaultMirrorMaterial() : null; - - if (material) - { - plane.GetComponent().sharedMaterial = material; - } - } - - [MenuItem("GameObject/Light/Planar Reflection Probe", priority = CoreUtils.gameObjectMenuPriority)] - static void CreatePlanarReflectionGameObject(MenuCommand menuCommand) - { - var parent = menuCommand.context as GameObject; - var go = CoreEditorUtils.CreateGameObject("Planar Reflection", parent); - var planarProbe = go.AddComponent(); - planarProbe.influenceVolume.boxSize = new Vector3(1, 0.01f, 1); - } - } -} diff --git a/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs.meta b/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs.meta deleted file mode 100644 index 927ac9bb947..00000000000 --- a/com.unity.render-pipelines.high-definition/Editor/Lighting/Reflection/HDProbeUI.ContextualMenu.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f9ddf94c77394c14986865eb30c51d79 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: