public static float GetHeight(Type _objectType) { ObjectDrawer objectEditor = Activator.CreateInstance(GetEditorType(_objectType), true) as ObjectDrawer; if (objectEditor == null) { return(0); } return(objectEditor.GetHeight()); }
public static bool CheckHasCustomDrawer(Type _objectType) { Type customDrawer = ObjectDrawer.GetEditorType(_objectType); if (!customDrawer.Equals(typeof(ObjectDrawer)) && customDrawer.BaseType == typeof(ObjectDrawer)) { return(true); } return(false); }
public static ObjectDrawer CreateEditor(object _targetObject) { ObjectDrawer objectEditor = InternalCreateEditor(_targetObject); if (objectEditor == null) { return(null); } objectEditor.Init(_targetObject); return(objectEditor); }