orthographic
Is the projection orthographic ( true ) or perspective ( false )?
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool orthographic { get; set; }
Remarks
When orthographic is true, projection is defined by Projector.orthographicSize.
When orthographic is false, projection is defined by Projector.fieldOfView. Additional Resources: projector component.
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { Projector proj = GetComponent<Projector>(); proj.orthographic = true; }}