|
|
|
|
|
|
using System.Reflection; |
|
|
|
using UnityEditor; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
namespace RMGUI.GraphView |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
if (s_ApplyWireMaterialMi == null) |
|
|
|
{ |
|
|
|
s_ApplyWireMaterialMi = typeof(HandleUtility).GetMethod("ApplyWireMaterial", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy); |
|
|
|
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) |
|
|
|