Exemplo n.º 1
0
        private InspectorDrawer CreateDrawer(UnityObject target, bool shown)
        {
            var drawer = InspectorDrawer.GetDrawer(target, target.GetType(), shown, showProps, privateFields, showObsolete, showMethods);

            drawer.OnRequireRedraw += Repaint;
            return(drawer);
        }
Exemplo n.º 2
0
 private void InternalOpen(object target, Type targetType, bool showProps, bool showPrivate, bool showObsolete, bool showMethods, bool updateProps, MethodPropertyDrawer parent)
 {
     titleContent            = new GUIContent($"{target ?? targetType} - Inspector+");
     drawer                  = InspectorDrawer.GetDrawer(target, targetType, true, showProps, showPrivate, showObsolete, showMethods);
     drawer.OnRequireRedraw += Repaint;
     this.parent             = parent;
     this.updateProps        = updateProps;
     ShowUtility();
     UpdateValues();
     isReadOnly = parent != null && parent.IsReadOnly && parent.requiredType != null && parent.requiredType.IsValueType;
 }