EnableCameraLayer

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
Enable a camera layer (draws a separate scene on top of the camera)<br>
+
{{lua-function|enableCameraLayer|scene}}
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 :
+
'''Example:'''
  
 
     GuiScene = getScene("GuiScene")
 
     GuiScene = getScene("GuiScene")

Revision as of 17:22, 8 February 2014

enableCameraLayer(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.

Example:

   GuiScene = getScene("GuiScene")
   Camera = getObject("Camera")
   enableCameraLayer(Camera, GuiScene)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox