public int intValue ;

描述

整数属性的值。

propertyTypeSerializedPropertyType.Integer 时,包含一个有效值。 用于访问 sbyte、byte、short、ushort、int 和 uint 属性。如果您要访问 long 或 ulong 属性,请改用 longValue

intValue 分配浮点时,值会被限制为属性的声明类型的范围。例如,如果属性声明为 byte,则值范围为 0 到 255。

另请参阅:longValuepropertyTypeSerializedPropertyType.Integer

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961