UnityEditor.EditorWrapper.Make C# (CSharp) Method

Make() public static method

public static Make ( UnityEngine obj, EditorFeatures requirements ) : EditorWrapper
obj UnityEngine
requirements EditorFeatures
return EditorWrapper
        public static EditorWrapper Make(UnityEngine.Object obj, EditorFeatures requirements)
        {
            EditorWrapper wrapper = new EditorWrapper();
            if (wrapper.Init(obj, requirements))
            {
                return wrapper;
            }
            wrapper.Dispose();
            return null;
        }

Usage Example

示例#1
0
 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);
     }
 }
All Usage Examples Of UnityEditor.EditorWrapper::Make