EnableCameraLayer
From MaratisWiki
(Difference between revisions)
m |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lua-function|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.<br> | ||
+ | note : the layer will be visible when the specified camera is active | ||
− | + | {{lua-function-param|camera|camera}} | |
+ | {{lua-function-param|scene|scene}} | ||
GuiScene = getScene("GuiScene") | GuiScene = getScene("GuiScene") | ||
Camera = getObject("Camera") | Camera = getObject("Camera") | ||
enableCameraLayer(Camera, GuiScene) | enableCameraLayer(Camera, GuiScene) | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Camera]] |
Latest revision as of 22:21, 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 -
scene
: scene
GuiScene = getScene("GuiScene") Camera = getObject("Camera") enableCameraLayer(Camera, GuiScene)