9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
17 lines
605 B
C#
17 lines
605 B
C#
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);
|
|
}
|
|
}
|
|
}
|