protected override void OnGuiSafe(SerializedProperty property, GUIContent label, IgnoreParentAttribute attribute) { if (!property.hasVisibleChildren) { ToolboxEditorGui.DrawNativeProperty(property, label); return; } ToolboxEditorGui.DrawPropertyChildren(property); }
protected override void OnGuiSafe(SerializedProperty property, GUIContent label, ReferencePickerAttribute attribute) { using (var propertyScope = new PropertyScope(property, label)) { if (!propertyScope.IsVisible) { return; } EditorGUI.indentLevel++; CreateTypeProperty(property); ToolboxEditorGui.DrawPropertyChildren(property); EditorGUI.indentLevel--; } }