propertyType
Type of this property (Read Only).
읽는 시간 1분최근 업데이트: 한 달 전
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.