Skip to content

@ue-too/ecs / index / serializeComponentSchema

Function: serializeComponentSchema() ​

serializeComponentSchema(schema): SerializedComponentSchema

Defined in: index.ts:387

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

Parameters ​

schema ​

ComponentSchema

The component schema to serialize

Returns ​

SerializedComponentSchema

A serializable representation of the schema

Throws ​

Error if component name is not a global symbol