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.
 
 
 
 
 

16 lines
605 B

using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
namespace UnityEditor.Rendering.Universal
{
internal static class CreateDecalProjector
{
[MenuItem("GameObject/Rendering/URP Decal Projector", priority = CoreUtils.Priorities.gameObjectMenuPriority)]
public static void CreateDecal(MenuCommand menuCommand)
{
var go = CoreEditorUtils.CreateGameObject("Decal Projector", menuCommand.context);
go.AddComponent<DecalProjector>();
go.transform.RotateAround(go.transform.position, go.transform.right, 90);
}
}
}