文档

Unity Engine

Unity Engine

doubleValue

Value of a float property as a double.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public double doubleValue { get; set; }

Remarks

Contains a valid value when SerializedProperty.propertyType is SerializedPropertyType.Float. For accessing float and double properties. When assigning a float to SerializedProperty.doubleValue, the value is clamped to the range of a float.