Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Ortho(float, float, float, float)

Returns a float4x4 centered orthographic projection matrix.
Read time 1 minuteLast updated 13 days ago

Definition

public static float4x4 Ortho(float width, float height, float near, float far)

Parameters

width

The width of the view volume.

height

The height of the view volume.

near

The distance to the near plane.

The distance to the far plane.

Returns

Type

Description

float4x4The float4x4 centered orthographic projection matrix.