Example #1
0
        public static float GetHeight(Type _objectType)
        {
            ObjectDrawer objectEditor = Activator.CreateInstance(GetEditorType(_objectType), true) as ObjectDrawer;

            if (objectEditor == null)
            {
                return(0);
            }
            return(objectEditor.GetHeight());
        }
Example #2
0
        public static bool CheckHasCustomDrawer(Type _objectType)
        {
            Type customDrawer = ObjectDrawer.GetEditorType(_objectType);

            if (!customDrawer.Equals(typeof(ObjectDrawer)) && customDrawer.BaseType == typeof(ObjectDrawer))
            {
                return(true);
            }
            return(false);
        }
Example #3
0
        public static ObjectDrawer CreateEditor(object _targetObject)
        {
            ObjectDrawer objectEditor = InternalCreateEditor(_targetObject);

            if (objectEditor == null)
            {
                return(null);
            }

            objectEditor.Init(_targetObject);
            return(objectEditor);
        }