@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 ​
| Parameter | Type |
|---|---|
json | unknown |
Returns ​
PrefabAsset | null

