IsCameraOrtho

(Difference between revisions)
Jump to: navigation, search
(Created page with "Check if camera is orthographic. Camera = getCurrentCamera() if isCameraOrtho(Camera) then -- Camera is orthographic else -- Camera is perspective end To enabl...")
 
Line 9: Line 9:
  
 
To enable or disable orthographic view use [[enableCameraOrtho]].
 
To enable or disable orthographic view use [[enableCameraOrtho]].
 +
 +
[[Category:Lua scripting]]

Revision as of 19:11, 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