using UnityEngine; namespace UnityEditor.Rendering { /// /// Helper methods for overriding contextual menus /// static class ContextualMenuDispatcher { [MenuItem("CONTEXT/ReflectionProbe/Remove Component")] [MenuItem("CONTEXT/Light/Remove Component")] [MenuItem("CONTEXT/Camera/Remove Component")] static void RemoveComponentWithAdditionalData(MenuCommand command) { RemoveComponentUtils.RemoveComponent(command.context as Component); } } }