Reference API Roblox

Engine API

Website

Related

Reference API Roblox

OrthographicMode

Sets which screen axis OrthographicSize is applied to.

Items 4

HistoryNameValueDescription
742Vertical0

The screen's vertical axis will span exactly OrthographicSize studs. The ViewStretch will apply to the horizontal axis.

742Horizontal1

The screen's horizontal axis will span exactly OrthographicSize studs. The ViewStretch will apply to the vertical axis.

742Diagonal2

The screen diagonal will span exactly OrthographicSize studs. The ViewStretch will apply to the horizontal axis. (In the initial beta, a bug makes it apply to both axes in a complex way.)

742MaxAxis3

The screen's longer axis will span exactly OrthographicSize studs. The ViewStretch will apply to the shorter axis. If both dimensions are identical, it will apply to the horizontal axis.

Description

Used by Camera to set which aspect of the ViewportSize is controlled by OrthographicSize.

For example, when this property is set to OrthographicMode.Vertical, the orthographic projection is scaled such that the vertical dimension spans exactly OrthographicSize studs, and the horizontal dimension spans however many studs are needed to match.

This also controls which axis ViewStretch will stretch for orthographic cameras.

History 5

Settings