mathe/Library/PackageCache/com.unity.render-pipelines.core@14.0.8/Editor/ContextualMenuDispatcher.cs
2024-09-20 20:30:10 +02:00

19 lines
547 B
C#

using UnityEngine;
namespace UnityEditor.Rendering
{
/// <summary>
/// Helper methods for overriding contextual menus
/// </summary>
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);
}
}
}