public static EditorWrapper Make(UnityEngine.Object obj, EditorFeatures requirements) { EditorWrapper wrapper = new EditorWrapper(); if (wrapper.Init(obj, requirements)) { return wrapper; } wrapper.Dispose(); return null; }
public EditorWrapper this[UnityEngine.Object o] { get { this.m_UsedEditors[o] = true; if (this.m_EditorCache.ContainsKey(o)) { return(this.m_EditorCache[o]); } EditorWrapper wrapper3 = EditorWrapper.Make(o, this.m_Requirements); this.m_EditorCache[o] = wrapper3; return(wrapper3); } }