EnableCameraLayer
(Difference between revisions)
m |
Dahnielson (Talk | contribs) |
||
Line 8: | Line 8: | ||
Camera = getObject("Camera") | Camera = getObject("Camera") | ||
enableCameraLayer(Camera, GuiScene) | enableCameraLayer(Camera, GuiScene) | ||
+ | |||
+ | [[Category:Lua scripting]] |
Revision as of 18:12, 4 February 2014
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)