When I try to change a camera mode to Camera.Ortographic, I get a "error in function 'SetProjectionMode'.; argument #2 is 'nil'; 'number' expected."
function Script:UpdateWorld()
if (window:KeyHit(Key.Space)) then
if (self.entity:GetProjectionMode()==Camera.Orthographic) then
self.entity:SetProjectionMode(Camera.Perspective)
self.entity:SetZoom(1)
else
self.entity:SetProjectionMode(Camera.Ortographic)
self.entity:SetZoom(1)
end
end
end