Editor.Components.CameraType
EnumThe same entity as in Lens Scripting.
Index
Enumeration Members
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const camera = model.project.scene.mainCamera;
// Switch camera to orthographic projection
camera.cameraType = Editor.Components.CameraType.Orthographic;
camera.fov = 60;
console.log(`cameraType: ${camera.cameraType}`);
Enumeration Members
Orthographic
Orthographic:
number
Orthographic projection with no depth perspective.
Perspective
Perspective:
number
Perspective projection simulating depth and foreshortening.