Version: 2022.3

Projector.orthographic

切换到手册
public bool orthographic ;

描述

正交投影 (true) 还是透视投影 (false)?

当 orthographic 为 true 时,投影由 orthographicSize 定义。\ 当 orthographic 为“false”时,投影由 fieldOfView 定义。 另请参阅:投影器组件

using UnityEngine;

public class Example : MonoBehaviour { void Start() { Projector proj = GetComponent<Projector>(); proj.orthographic = true; } }