Skip to content

@relu-interactives/spatial-ecs


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

Function: createScriptObjectComponent() ​

ts
function createScriptObjectComponent(
   world, 
   entityId, 
   payload?): ScriptObjectComponent;

Defined in: factories/components/ScriptObjectComponentFactory.ts:7

Parameters ​

ParameterType
worldWorld
entityIdnumber
payloadScriptObjectComponentInput

Returns ​

ScriptObjectComponent