EnableCameraLayer

(Difference between revisions)
Jump to: navigation, search
m
m
Line 3: Line 3:
 
Enable a camera layer (draws a separate scene on top of the camera). It can be used to draw an interface on top of a game.
 
Enable a camera layer (draws a separate scene on top of the camera). It can be used to draw an interface on top of a game.
  
'''Example:'''
+
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|scene|scene}}
  
 
     GuiScene = getScene("GuiScene")
 
     GuiScene = getScene("GuiScene")

Revision as of 00:10, 9 February 2014

enableCameraLayer(object, scene)

Enable a camera layer (draws a separate scene on top of the camera). It can be used to draw an interface on top of a game.

  • object : object to operate on
  • scene : scene
   GuiScene = getScene("GuiScene")
   Camera = getObject("Camera")
   enableCameraLayer(Camera, GuiScene)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox