透视视角的摄像机
正交视角的摄像机
正交视角下的size的含义
Camera.orthographicSize
public float orthographicSize ;
描述
处于正交模式时,摄像机大小的一半。
orthographicSize 属性定义 orthographic 摄像机的视体。要编辑该大小,请先使用脚本或在 Inspector 中将摄像机设置为 orthographic。 orthographicSize 为垂直视体大小的一半。视体的水平大小取决于宽高比。
如果是非正交摄像机,将忽略 Orthographic 大小(请参阅 orthographic)。
代码实现:
using System.Collections;
using System.Collections