propertyType
Type of this property (Read Only).
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public SerializedPropertyType propertyType { get; }
Remarks
Property type determines which of the "value" variable accessors are valid. For example, only SerializedProperty.boolValue is valid for SerializedPropertyType.Boolean
For numeric types SerializedPropertyType.Float and SerializedPropertyType.Integer, the best accessor can be determined with SerializedProperty.numericType, for example SerializedProperty.floatValue should be used for SerializedPropertyNumericType.Float and SerializedProperty.doubleValue should be used for SerializedPropertyNumericType.Double.
Additional Resources: SerializedPropertyType, SerializedProperty.numericType.