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