No Description
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.

CreateDecalProjector.cs 605B

12345678910111213141516
  1. using UnityEngine.Rendering;
  2. using UnityEngine.Rendering.Universal;
  3. namespace UnityEditor.Rendering.Universal
  4. {
  5. internal static class CreateDecalProjector
  6. {
  7. [MenuItem("GameObject/Rendering/URP Decal Projector", priority = CoreUtils.Priorities.gameObjectMenuPriority)]
  8. public static void CreateDecal(MenuCommand menuCommand)
  9. {
  10. var go = CoreEditorUtils.CreateGameObject("Decal Projector", menuCommand.context);
  11. go.AddComponent<DecalProjector>();
  12. go.transform.RotateAround(go.transform.position, go.transform.right, 90);
  13. }
  14. }
  15. }