Class Camera
A camera’s projection
Inherited Members
Namespace: GLTFast.Schema
Assembly: glTFast.dll
Syntax
[Serializable]
public class Camera : NamedObject
Fields
orthographic
An orthographic camera containing properties to create an orthographic projection matrix.
Declaration
public CameraOrthographic orthographic
Field Value
| Type | Description |
|---|---|
| CameraOrthographic |
perspective
An orthographic camera containing properties to create an orthographic projection matrix.
Declaration
public CameraPerspective perspective
Field Value
| Type | Description |
|---|---|
| CameraPerspective |
Methods
GetCameraType()
Camera.Type typed and cached getter onto type string.
Declaration
public Camera.Type GetCameraType()
Returns
| Type | Description |
|---|---|
| Camera.Type | Camera type, if it was retrieved correctly. Perspective otherwise |
SetCameraType(Type)
Camera.Type typed setter for type string.
Declaration
public void SetCameraType(Camera.Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera.Type | type | Camera type |