GetScene

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 
{{lua-function|getScene|scene}}
 
{{lua-function|getScene|scene}}
  
Get the scene reference from the scene name
+
Get the scene reference from the scene name.
 +
 
 +
{{lua-function-param|scene|scene name}}
  
 
     scene = getScene("sceneName")  
 
     scene = getScene("sceneName")  

Revision as of 23:53, 8 February 2014

getScene(scene)

Get the scene reference from the scene name.

  • scene : 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)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox