ECS Framework API / SerializeAsSet
Function: SerializeAsSet()
SerializeAsSet(): (
target,propertyKey) =>void
Defined in: packages/core/src/ECS/Serialization/SerializationDecorators.ts:177
Set序列化装饰器
专门用于序列化Set类型字段
Returns
(
target,propertyKey):void
Parameters
target
any
propertyKey
string | symbol
Returns
void
Example
typescript
@SerializeAsSet()
tags: Set<string> = new Set();