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
674 B
18 lines
674 B
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Rendering.HighDefinition;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition
|
|
{
|
|
class DecalMenuItems
|
|
{
|
|
[MenuItem("GameObject/Rendering/HDRP Decal Projector", priority = CoreUtils.Priorities.gameObjectMenuPriority)]
|
|
static void CreateDecal(MenuCommand menuCommand)
|
|
{
|
|
var parent = menuCommand.context as GameObject;
|
|
var go = CoreEditorUtils.CreateGameObject("Decal Projector", parent);
|
|
var decal = go.AddComponent<DecalProjector>();
|
|
decal.transform.RotateAround(decal.transform.position, decal.transform.right, 90);
|
|
}
|
|
}
|
|
}
|