言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Camera.orthographic

Switch to Manual
public var orthographic: bool;

Description

Is the camera orthographic (true) or perspective (false)?

When ortho is true, camera's viewing volume is defined by orthographicSize.
When orthographic is false, camera's viewing volume is defined by fieldOfView. See Also: camera component, transparencySortMode.

	// Set the camera to be orthograpghic

	camera.orthographic = true;

Specifically for the main camera:

	// Set the main camera to be orthographic

	Camera.main.orthographic = true;