기술 자료

Unity Engine

Unity Engine

longValue

Value of an integer property as a long.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public long longValue { get; set; }

Remarks

Contains a valid value when SerializedProperty.propertyType is SerializedPropertyType.Integer. Most appropriate for long properties (SerializedPropertyNumericType.Int64), but can be used with all integer types of 64 bits or less, although SerializedProperty.ulongValue is recommended for SerializedPropertyNumericType.UInt64.
When assigning a value to SerializedProperty.longValue, the value is clamped in the range of the property's declared type. For example, a property that is declared as a ushort is clamped between 0 and 65,535.