Skip to content

@ue-too/ecs / index / serializeComponentSchema

函式: serializeComponentSchema() ​

serializeComponentSchema(schema): SerializedComponentSchema

定義於: index.ts:387

Serialize a component schema to a JSON-compatible format. Note: Only works with global symbols (created via Symbol.for).

參數 ​

schema ​

ComponentSchema

The component schema to serialize

回傳 ​

SerializedComponentSchema

A serializable representation of the schema

拋出 ​

Error if component name is not a global symbol