public class HDRenderPipelineMenuItems
{
[MenuItem("HDRenderPipeline/Add \"Additional Light-shadow Data\" (if not present)")]
[MenuItem("Internal/ HDRenderPipeline/Add \"Additional Light-shadow Data\" (if not present)")]
static void AddAdditionalLightData ( )
{
var lights = UnityObject . FindObjectsOfType ( typeof ( Light ) ) as Light [ ] ;
}
}
[MenuItem("HDRenderPipeline/Add \"Additional Camera Data\" (if not present)")]
[MenuItem("Internal/ HDRenderPipeline/Add \"Additional Camera Data\" (if not present)")]
static void AddAdditionalCameraData ( )
{
var cameras = UnityObject . FindObjectsOfType ( typeof ( Camera ) ) as Camera [ ] ;
}
// This script is a helper for the artists to re-synchronize all layered materials
[MenuItem("HDRenderPipeline/Synchronize all Layered materials")]
[MenuItem("Internal/ HDRenderPipeline/Synchronize all Layered materials")]
static void SynchronizeAllLayeredMaterial ( )
{
var materials = Resources . FindObjectsOfTypeAll < Material > ( ) ;
// In case the shader code have change and the inspector have been update with new kind of keywords we need to regenerate the set of keywords use by the material.
// This script will remove all keyword of a material and trigger the inspector that will re-setup all the used keywords.
// It require that the inspector of the material have a static function call that update all keyword based on material properties.
[MenuItem("HDRenderPipeline/Test/Reset all materials keywords" )]
[MenuItem("Edit/Render Pipeline/Upgrade/High Definition/Reset All Materials Keywords (Loaded Materials)", priority = CoreUtils.editMenuPriority2 )]
static void ResetAllMaterialKeywords ( )
{
try
}
}
[MenuItem("HDRenderPipeline/Test/Reset all materials keywords in project" )]
[MenuItem("Edit/Render Pipeline/Upgrade/High Definition/Reset All Materials Keywords (Materials in Project)", priority = CoreUtils.editMenuPriority2 )]
static void ResetAllMaterialKeywordsInProject ( )
{
try
}
}
[MenuItem("HDRenderPipeline/Update/Update SSS profile indices")]
[MenuItem("Internal/ HDRenderPipeline/Update/Update SSS profile indices")]
static void UpdateSSSProfileIndices ( )
{
try
}
// Function used only to check performance of data with and without tessellation
[MenuItem("HDRenderPipeline/Test/Remove tessellation materials (not reversible)")]
[MenuItem("Internal/ HDRenderPipeline/Test/Remove tessellation materials (not reversible)")]
static void RemoveTessellationMaterials ( )
{
var materials = Resources . FindObjectsOfTypeAll < Material > ( ) ;
}
}
[MenuItem("HDRenderPipeline/Export Sky to Image" )]
[MenuItem("Edit/Render Pipeline/Tools/High Definition/Export Sky to Image", priority = CoreUtils.editMenuPriority2 )]
static void ExportSkyToImage ( )
{
var renderpipeline = RenderPipelineManager . currentPipeline as HDRenderPipeline ;
}
}
[MenuItem("GameObject/HD Render Pipeline/Scene Settings", false, 10)]
[MenuItem("GameObject/Render Pipeline/High Definition/Scene Settings", priority = 10)]
static void CreateCustomGameObject ( MenuCommand menuCommand )
{
var sceneSettings = new GameObject ( "Scene Settings" ) ;
class DoCreateNewAssetProceduralSkySettings : DoCreateNewAsset < ProceduralSkySettings > { }
class DoCreateNewAssetSubsurfaceScatteringSettings : DoCreateNewAsset < SubsurfaceScatteringSettings > { }
[MenuItem("Assets/Create/HDRenderPipeline/Common Settings", priority = 700 )]
[MenuItem("Assets/Create/Render Pipeline/High Definition/Common Settings", priority = CoreUtils.assetCreateMenuPriority2 )]
static void MenuCreateCommonSettings ( )
{
var icon = EditorGUIUtility . FindTexture ( "ScriptableObject Icon" ) ;
[MenuItem("Assets/Create/HDRenderPipeline/Subsurface Scattering Settings", priority = 70 2)]
[MenuItem("Assets/Create/Render Pipeline/High Definition/Subsurface Scattering Settings", priority = CoreUtils.assetCreateMenuPriority 2)]
static void MenuCreateSubsurfaceScatteringProfile ( )
{
var icon = EditorGUIUtility . FindTexture ( "ScriptableObject Icon" ) ;
[MenuItem("Assets/Create/HDRenderPipeline/HDRISky Settings", priority = 750 )]
[MenuItem("Assets/Create/Render Pipeline/High Definition/HDRISky Settings", priority = CoreUtils.assetCreateMenuPriority2 )]
static void MenuCreateHDRISkySettings ( )
{
var icon = EditorGUIUtility . FindTexture ( "ScriptableObject Icon" ) ;
[MenuItem("Assets/Create/HDRenderPipeline/BlacksmithSky Settings", priority = 751 )]
[MenuItem("Assets/Create/Render Pipeline/High Definition/BlacksmithSky Settings", priority = CoreUtils.assetCreateMenuPriority2 )]
static void MenuCreateBlacksmithSkySettings ( )
{
var icon = EditorGUIUtility . FindTexture ( "ScriptableObject Icon" ) ;
[MenuItem("Assets/Create/HDRenderPipeline/ProceduralSky Settings", priority = 75 2)]
[MenuItem("Assets/Create/Render Pipeline/High Definition/ProceduralSky Settings", priority = CoreUtils.assetCreateMenuPriority 2)]
static void MenuCreateProceduralSkySettings ( )
{
var icon = EditorGUIUtility . FindTexture ( "ScriptableObject Icon" ) ;