You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
547 B
18 lines
547 B
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);
|
|
}
|
|
}
|
|
}
|