Project

Reference

A module to handle access to the project

project.getScenes()

Get a list of all the scenes in the project

Returns:

Array of SceneEntry objects

Return type:

table

project.getSceneByName(name)

Get a scene by its item name

Parameters:

name (str) – name of the scene’s item

Returns:

the scene entry object if the scene was found or nil

Return type:

SceneEntry

project.getGravity()

Get the physics engine gravity value for the project

Returns:

gravity value

Return type:

number

project.setGravity(value)

Set the physics engine gravity value in the project

Parameters:

value (Vector3) – the gravity

Examples