浏览代码

Clean test code for debug menu

/main
Julien Ignace 8 年前
当前提交
9a49604d
共有 1 个文件被更改,包括 1 次插入29 次删除
  1. 30
      Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs

30
Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs


get { return m_DebugParameters; }
}
//HDRenderLoopDebugMenu m_DebugMenu = null;
[MenuItem("Renderloop/HDRenderLoop/CreateHDRenderLoop")]
[MenuItem("Renderloop/CreateHDRenderLoop")]
}
[MenuItem("Renderloop/HDRenderLoop/DebugMenu")]
static void DebugMenu()
{
HDRenderLoop renderLoop = AssetDatabase.LoadAssetAtPath(m_HDRenderLoopPath, typeof(HDRenderLoop)) as HDRenderLoop;
if(renderLoop != null)
{
//renderLoop.ToggleDebugMenu();
if (renderLoop.debugParameters.materialDebugMode == HDRenderLoop.MaterialDebugMode.None)
renderLoop.debugParameters.materialDebugMode = HDRenderLoop.MaterialDebugMode.Normal;
else
renderLoop.debugParameters.materialDebugMode = HDRenderLoop.MaterialDebugMode.None;
EditorUtility.SetDirty(renderLoop);
}
}
#endif

// Post effects
}
//void ToggleDebugMenu()
//{
// if(m_DebugMenu == null)
// {
// m_DebugMenu = new HDRenderLoopDebugMenu(this);
// }
// m_DebugMenu.Toggle();
//}
#if UNITY_EDITOR
public override UnityEditor.SupportedRenderingFeatures GetSupportedRenderingFeatures()

正在加载...
取消
保存