UnityGame/Library/PackageCache/com.unity.render-pipelines.core/Editor/ContextualMenuDispatcher.cs
2024-10-27 10:53:47 +03: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);
}
}
}