浏览代码

HDRenderPipeline: Small fix on the debug material generated path

/RenderPassXR_Sandbox
Sebastien Lagarde 8 年前
当前提交
53adf662
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 7
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Debug/DebugDisplay.cs

7
Assets/ScriptableRenderPipeline/HDRenderPipeline/Debug/DebugDisplay.cs


lightingDebugSettings.OnValidate();
}
void FillWithProperties(Type type, GUIContent[] debugViewMaterialStrings, int[] debugViewMaterialValues, string strSubNameSpace, ref int index)
// className include the additional "/"
void FillWithProperties(Type type, GUIContent[] debugViewMaterialStrings, int[] debugViewMaterialValues, string className, ref int index)
{
var attributes = type.GetCustomAttributes(true);
// Get attribute to get the start number of the value for the enum

}
}
fieldName = strSubNameSpace + fieldName;
fieldName = className + fieldName;
debugViewMaterialStrings[index] = new GUIContent(fieldName);
debugViewMaterialValues[index] = attr.paramDefinesStart + (int)localIndex;

{
MaterialItem item = new MaterialItem();
item.className = material.GetType().Name;
item.className = material.GetType().Name + "/";
item.surfaceDataType = material.GetType().GetNestedType("SurfaceData");
numSurfaceDataFields += item.surfaceDataType.GetFields().Length;

正在加载...
取消
保存