Class Camera
A camera’s projection
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class Camera : NamedObject
Properties
AdditionalProperties
Additional properties on glTF JSON objects. Those properties may have been added by a new, unsupported version of the glTF specification. For extending glTF, please use extensions or extras instead.
Declaration
[JsonIgnore]
public ReadOnlyProperties AdditionalProperties { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyProperties |
Extensions
JSON object with extension-specific objects.
Declaration
[JsonPropertyName("extensions")]
public CameraExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| CameraExtensions |
See Also
Extras
Application-specific data.
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(ExtrasConverter))]
public ExtrasContainer Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtrasContainer |
See Also
Orthographic
An orthographic camera containing properties to create an orthographic projection matrix.
Declaration
[JsonPropertyName("orthographic")]
public CameraOrthographic Orthographic { get; set; }
Property Value
| Type | Description |
|---|---|
| CameraOrthographic |
Perspective
A perspective camera containing properties to create a perspective projection matrix.
Declaration
[JsonPropertyName("perspective")]
public CameraPerspective Perspective { get; set; }
Property Value
| Type | Description |
|---|---|
| CameraPerspective |
Type
Camera projection type
Declaration
[JsonPropertyName("type")]
[JsonConverter(typeof(CameraTypeValueConverter))]
public EnumOrRawValue<CameraType> Type { get; set; }
Property Value
| Type | Description |
|---|---|
| EnumOrRawValue<CameraType> |