sm.creation.exportToString

Exports creation to blueprint formatted json string.

Kind: Function

Environments: Game

Game

sm.creation.exportToString( body, exportTransforms, forceDynamic )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
body Body Any body in the creation.
exportTransforms (optional) boolean Export the current world transform of bodies. Defaults to false.
forceDynamic (optional) boolean Force export to dynamic bodies. Defaults to false.

Returns:

Type Description
string The blueprint json string.