Projector.orthographic

切换至手册
public bool orthographic;

说明

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

当正交为 true 时,投影由 orthographicSize 定义。
当正交为 false 时,投影由 fieldOfView 定义。其他资源:投影组件

using UnityEngine;

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

Did you find this page useful? Please give it a rating: