Skip to main content

View

Description:

  A record that provides access to the 3D graphic view.

size

Type: Readonly Field.

Description:

  The size of the view in pixels.

Signature:

const size: Size

standardDistance

Type: Readonly Field.

Description:

  The standard distance of the view from the origin.

Signature:

const standardDistance: number

aspectRatio

Type: Readonly Field.

Description:

  The aspect ratio of the view.

Signature:

const aspectRatio: number

nearPlaneDistance

Type: Field.

Description:

  The distance to the near clipping plane.

Signature:

nearPlaneDistance: number

farPlaneDistance

Type: Field.

Description:

  The distance to the far clipping plane.

Signature:

farPlaneDistance: number

fieldOfView

Type: Field.

Description:

  The field of view of the view in degrees.

Signature:

fieldOfView: number

scale

Type: Field.

Description:

  The scale factor of the view.

Signature:

scale: number

postEffect

Type: Field.

Description:

  The post effect applied to the view.

Signature:

postEffect: SpriteEffect

vsync

Type: Field.

Description:

  Whether or not vertical sync is enabled.

Signature:

vsync: boolean