Skip to content

@modoki/engine / index / resolveSceneByName

Function: resolveSceneByName()

resolveSceneByName(nameOrGuid): string | undefined

Resolve a scene reference to its current path by GUID or by name. Used by the public web shell to honor a ?scene= query param (e.g. ?scene=Warp, ?scene=2D%20Animation, or a raw GUID). Returns the path of a registered 'scene' asset whose filename matches nameOrGuid, or undefined if none. The manifest must be loaded first (ensureManifestLoaded).

Parameters

nameOrGuid

string

Returns

string | undefined

Built with Modoki.