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

25 行
657 B

using System.Reflection;
using UnityEditor;
using System.Linq;
namespace RMGUI.GraphView
{
internal class UIHelpers
{
static MethodInfo s_ApplyWireMaterialMi;
public static void ApplyWireMaterial()
{
if (s_ApplyWireMaterialMi == null)
{
var methods = typeof(HandleUtility).GetMethods(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);
s_ApplyWireMaterialMi = methods.First(o => o.Name == "ApplyWireMaterial" && o.GetGenericArguments().Count() == 0);
}
if (s_ApplyWireMaterialMi != null)
{
s_ApplyWireMaterialMi.Invoke(null, null);
}
}
}
}