IsCameraOrtho

(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Camera]]

Revision as of 18:41, 4 February 2014

Check if camera is orthographic.

Camera = getCurrentCamera()
if isCameraOrtho(Camera) then
    -- Camera is orthographic
else
    -- Camera is perspective
end

To enable or disable orthographic view use enableCameraOrtho.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox