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.