EnableCameraLayer

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{{lua-function|enableCameraLayer|object, scene}}
+
{{lua-function|enableCameraLayer|camera, 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.
+
Enable a camera layer (draws a separate scene on top of the specified camera). It can be used to draw an interface on top of a game.
 +
note : the layer will be visible when the specified camera is active
  
{{lua-function-param|object|object to operate on}}
+
{{lua-function-param|camera|camera from the current scene}}
 
{{lua-function-param|scene|scene}}
 
{{lua-function-param|scene|scene}}
  

Revision as of 22:20, 3 April 2014

enableCameraLayer(camera, scene)

Enable a camera layer (draws a separate scene on top of the specified camera). It can be used to draw an interface on top of a game. note : the layer will be visible when the specified camera is active

  • camera : camera from the current scene
  • scene : scene
   GuiScene = getScene("GuiScene")
   Camera = getObject("Camera")
   enableCameraLayer(Camera, GuiScene)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox