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

26 行
557 B

using System.Linq;
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)
.GetMethods(BindingFlags.NonPublic | BindingFlags.Static)
.First(m => m.Name == "ApplyWireMaterial" && m.GetParameters().Length == 0);
}
if (s_ApplyWireMaterialMi != null)
{
s_ApplyWireMaterialMi.Invoke(null, null);
}
}
}
}