> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksflagsdrawer.md).

# Class ksFlagsDrawer

Namespace: [KS.Reactor.Client.Unity.Editor](/reactor/api-reference/ks.reactor.client.unity.editor.md)\
Assembly: KSUnity-Source.dll

Property drawer for enum flag masks using the [ksFlagsAttribute](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.ksflagsattribute.md). Converts names using our naming standard (ENUM\_VALUE) to a more readable format (Enum Value). Composite flag values are not shown.

```csharp
[CustomPropertyDrawer(typeof(ksFlagsAttribute))]
public class ksFlagsDrawer : PropertyDrawer
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) â† GUIDrawer â† PropertyDrawer â† [ksFlagsDrawer](/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksflagsdrawer.md)

#### Inherited Members

PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent), PropertyDrawer.CreatePropertyGUI(SerializedProperty), PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent), PropertyDrawer.CanCacheInspectorGUI(SerializedProperty), PropertyDrawer.attribute, PropertyDrawer.fieldInfo, PropertyDrawer.preferredLabel, [object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Methods

### OnGUI(Rect, SerializedProperty, GUIContent) <a href="#ks_reactor_client_unity_editor_ksflagsdrawer_ongui_unityengine_rect_unityeditor_serializedproperty_u" id="ks_reactor_client_unity_editor_ksflagsdrawer_ongui_unityengine_rect_unityeditor_serializedproperty_u"></a>

Draws the property.

```csharp
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
```

#### Parameters

`position` Rect

Position to draw at.

`property` SerializedProperty

Property to draw.

`label` GUIContent

Label for the property.
