propertyType
Type of this property (Read Only).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
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.