浏览代码

Fix ApplyWireMaterial reflection since there's two methods now

/main
julienf-unity 8 年前
当前提交
b0e51cca
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      MaterialGraphProject/Assets/NewUI/Editor/Utils/UIHelpers.cs

8
MaterialGraphProject/Assets/NewUI/Editor/Utils/UIHelpers.cs


using System;
using System.Reflection;
using UnityEditor;

{
if (s_ApplyWireMaterialMi == null)
{
s_ApplyWireMaterialMi = typeof(HandleUtility).GetMethod("ApplyWireMaterial", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);
s_ApplyWireMaterialMi = typeof(HandleUtility).GetMethod(
"ApplyWireMaterial",
BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy,
null,
new Type[0],
null);
}
if (s_ApplyWireMaterialMi != null)

正在加载...
取消
保存