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.
24 lines
980 B
24 lines
980 B
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition
|
|
{
|
|
class ProbeVolumeMenuItems
|
|
{
|
|
[MenuItem("GameObject/Light/Adaptive Probe Volume", priority = CoreUtils.Sections.section8)]
|
|
static void CreateProbeVolumeGameObject(MenuCommand menuCommand)
|
|
{
|
|
var parent = menuCommand.context as GameObject;
|
|
var probeVolume = CoreEditorUtils.CreateGameObject("Adaptive Probe Volume", parent);
|
|
probeVolume.AddComponent<ProbeVolume>();
|
|
}
|
|
|
|
[MenuItem("GameObject/Light/Probe Adjustment Volume", priority = CoreUtils.Sections.section8 + 1)]
|
|
static void CreateProbeAdjustmentVolumeGameObject(MenuCommand menuCommand)
|
|
{
|
|
var parent = menuCommand.context as GameObject;
|
|
var probeVolume = CoreEditorUtils.CreateGameObject("Probe Adjustment Volume", parent);
|
|
probeVolume.AddComponent<ProbeAdjustmentVolume>();
|
|
}
|
|
}
|
|
}
|