Skip to content

Class: Scene

Methods

NameDescription
:addComponentIcon(entityId)
:addComponentLabel(entityId)
:addComponentModel(entityId)
:addComponentNetwork(entityId)
:addComponentRigidBody(entityId)
:addComponentTransform(entityId)
:addComponentVoxelGrid(entityId)
:createEntity()
:getComponentIcon(entityId)
:getComponentLabel(entityId)
:getComponentModel(entityId)
:getComponentNetwork(entityId)
:getComponentRigidBody(entityId)
:getComponentTransform(entityId)
:getComponentVoxelGrid(entityId)
:patchComponentIcon(entityId)
:patchComponentLabel(entityId)
:patchComponentModel(entityId)
:patchComponentNetwork(entityId)
:patchComponentRigidBody(entityId)
:patchComponentTransform(entityId)
:patchComponentVoxelGrid(entityId)
:removeEntity(entityId)

Method declarations

Method: addComponentIcon

lua
function Scene:addComponentIcon(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: addComponentLabel

lua
function Scene:addComponentLabel(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: addComponentModel

lua
function Scene:addComponentModel(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: addComponentNetwork

lua
function Scene:addComponentNetwork(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: addComponentRigidBody

lua
function Scene:addComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: addComponentTransform

lua
function Scene:addComponentTransform(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: addComponentVoxelGrid

lua
function Scene:addComponentVoxelGrid(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: createEntity

lua
function Scene:createEntity() end

Returns:

  • integer - new entity ID

Method: getComponentIcon

lua
function Scene:getComponentIcon(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentLabel

lua
function Scene:getComponentLabel(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentModel

lua
function Scene:getComponentModel(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentNetwork

lua
function Scene:getComponentNetwork(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentRigidBody

lua
function Scene:getComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentTransform

lua
function Scene:getComponentTransform(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: getComponentVoxelGrid

lua
function Scene:getComponentVoxelGrid(
    entityId
) end

Parameters:

  • entityId (integer)

Returns:

Method: patchComponentIcon

lua
function Scene:patchComponentIcon(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentLabel

lua
function Scene:patchComponentLabel(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentModel

lua
function Scene:patchComponentModel(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentNetwork

lua
function Scene:patchComponentNetwork(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentRigidBody

lua
function Scene:patchComponentRigidBody(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentTransform

lua
function Scene:patchComponentTransform(
    entityId
) end

Parameters:

  • entityId (integer)

Method: patchComponentVoxelGrid

lua
function Scene:patchComponentVoxelGrid(
    entityId
) end

Parameters:

  • entityId (integer)

Method: removeEntity

lua
function Scene:removeEntity(
    entityId
) end

Parameters:

  • entityId (integer)