GetScene
(Difference between revisions)
(Created page with "Get the scene reference from the scene name scene = getScene("sceneName") It can be used to get an object from a scene different than the current scene : scene2 =...") |
Dahnielson (Talk | contribs) |
||
| Line 13: | Line 13: | ||
getGravity(scene2) | getGravity(scene2) | ||
changeCurrentCamera(scene2, camera) | changeCurrentCamera(scene2, camera) | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
Revision as of 18:08, 4 February 2014
Get the scene reference from the scene name
scene = getScene("sceneName")
It can be used to get an object from a scene different than the current scene :
scene2 = getScene("scene2")
scene2object = getObject(scene2, "object")
Or to access scene properties :
setGravity(scene2, gravity) getGravity(scene2) changeCurrentCamera(scene2, camera)