ECS Framework API / IgnoreSerialization
Function: IgnoreSerialization()
IgnoreSerialization(): (
target,propertyKey) =>void
Defined in: packages/core/src/ECS/Serialization/SerializationDecorators.ts:207
忽略序列化装饰器
标记字段不参与序列化
Returns
(
target,propertyKey):void
Parameters
target
any
propertyKey
string | symbol
Returns
void
Example
typescript
@IgnoreSerialization()
tempCache: any = null;