您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

29 行
690 B

using System;
using System.Reflection;
using UnityEditor;
namespace RMGUI.GraphView
{
internal class UIHelpers
{
static MethodInfo s_ApplyWireMaterialMi;
public static void ApplyWireMaterial()
{
if (s_ApplyWireMaterialMi == null)
{
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)
{
s_ApplyWireMaterialMi.Invoke(null, null);
}
}
}
}