# propertyType

> Type of this property (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public SerializedPropertyType propertyType { get; }
```

### Remarks

Property type determines which of the "value" variable accessors are valid. For example, only [SerializedProperty.boolValue](/engine/6000.0/script-reference/unityeditor/serializedproperty/boolvalue.md) is valid for [SerializedPropertyType.Boolean](/engine/6000.0/script-reference/unityeditor/serializedpropertytype/boolean.md)

For numeric types [SerializedPropertyType.Float](/engine/6000.0/script-reference/unityeditor/serializedpropertytype/float.md) and [SerializedPropertyType.Integer](/engine/6000.0/script-reference/unityeditor/serializedpropertytype/integer.md), the best accessor can be determined with [SerializedProperty.numericType](/engine/6000.0/script-reference/unityeditor/serializedproperty/numerictype.md), for example [SerializedProperty.floatValue](/engine/6000.0/script-reference/unityeditor/serializedproperty/floatvalue.md) should be used for [SerializedPropertyNumericType.Float](/engine/6000.0/script-reference/unityeditor/serializedpropertynumerictype/float.md) and [SerializedProperty.doubleValue](/engine/6000.0/script-reference/unityeditor/serializedproperty/doublevalue.md) should be used for [SerializedPropertyNumericType.Double](/engine/6000.0/script-reference/unityeditor/serializedpropertynumerictype/double.md).

Additional Resources: [SerializedPropertyType](/engine/6000.0/script-reference/unityeditor/serializedpropertytype.md), [SerializedProperty.numericType](/engine/6000.0/script-reference/unityeditor/serializedproperty/numerictype.md).
