Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / parsePrefabAsset

Function: parsePrefabAsset() ​

ts
function parsePrefabAsset(json): PrefabAsset | null;

Defined in: prefab/types.ts:32

Validate untrusted JSON into a PrefabAsset, or null when malformed.

Parameters ​

ParameterType
jsonunknown

Returns ​

PrefabAsset | null