Rasagar/Library/PackageCache/com.unity.render-pipelines.core/Editor/ContextualMenuDispatcher.cs
2024-08-26 23:07:20 +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);
}
}
}