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