Class CameraPerspective
A perspective camera containing properties to create a perspective projection matrix.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class CameraPerspective
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 |
AspectRatio
The floating-point aspect ratio of the field of view.
Declaration
[JsonPropertyName("aspectRatio")]
public float? AspectRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Extensions
JSON object with extension-specific objects.
Declaration
[JsonPropertyName("extensions")]
public CameraPerspectiveExtensions Extensions { get; set; }
Property Value
| Type | Description |
|---|---|
| CameraPerspectiveExtensions |
See Also
Extras
Application-specific data.
Declaration
[JsonPropertyName("extras")]
[JsonConverter(typeof(ExtrasConverter))]
public ExtrasContainer Extras { get; set; }
Property Value
| Type | Description |
|---|---|
| ExtrasContainer |
See Also
Yfov
The floating-point vertical field of view in radians.
Declaration
[JsonPropertyName("yfov")]
public float Yfov { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Zfar
The floating-point distance to the far clipping plane.
Declaration
[JsonPropertyName("zfar")]
public float? Zfar { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Znear
The floating-point distance to the near clipping plane.
Declaration
[JsonPropertyName("znear")]
public float Znear { get; set; }
Property Value
| Type | Description |
|---|---|
| float |