Singularity/Library/PackageCache/com.unity.render-pipelines..../Editor/Decal/CreateDecalProjector.cs

17 lines
605 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
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);
}
}
}