Documentation / scene / PropertyValue
Type Alias: PropertyValue
PropertyValue =
object
Defined in: libs/scene/src/utility/serialization/types.ts:53
Container for a serializable property's value.
Values are carried in typed arrays (even for single values) to support both scalar and array-like properties in a unified shape.
Conventions:
numcarries numeric data for types likeint,float,vec*,int*,rgb,rgbastrcarries string data forstringboolcarries boolean data forboolobjectcarries references/instances forobject,object_array,embedded
Only the relevant field(s) for the property's PropertyType will be populated.
Properties
num?
optionalnum?:number[]
Defined in: libs/scene/src/utility/serialization/types.ts:55
Numeric lane(s) for numeric, vector, or color types.
str?
optionalstr?:string[]
Defined in: libs/scene/src/utility/serialization/types.ts:57
String lane(s) for text properties.
bool?
optionalbool?:boolean[]
Defined in: libs/scene/src/utility/serialization/types.ts:59
Boolean lane(s) for boolean properties.
object?
optionalobject?:Nullable<object>[]
Defined in: libs/scene/src/utility/serialization/types.ts:61
Object lane(s) for object references or embedded objects.