public override void OnInspectorGUI() { DrawDefaultInspector(); Type type = target.GetType(); if (type.GetCustomAttributes(typeof(ATTR.EnableUCLEditor), true).Length == 0) { return; } DrawATTR.Draw(target, type, this.GetType()); }
public override void OnInspectorGUI() { DrawDefaultInspector(); Type type = target.GetType(); if (type.GetCustomAttributes(typeof(ATTR.EnableUCLEditor), true).Length == 0) { return; } m_RequiresConstantRepaint = (type.GetCustomAttributes(typeof(ATTR.RequiresConstantRepaintAttribute), true).Length > 0); DrawATTR.Draw(target, type, this.GetType()); Resources.UnloadUnusedAssets(); }