用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:enumerations:transparencysortmode:transparencysortmode

TransparencySortMode 透明度排序模式

Description 描述

Transparent object sorting mode of a Camera.

By default, perspective cameras sort objects based on distance from camera position to the object center; and orthographic cameras sort based on distance along the view direction.

If you're making a 2D game with a perspective camera, you might want to use TransparencySortMode.Orthographic sort mode so that objects are sorted based on distance along the camera's view.

See Also: Camera.transparencySortMode.

摄像机筛选透明度物体的模式。

默认情况下,透视相机对象排序基于摄像头的位置距离中心的对象;和正交相机排序基于沿视线方向的距离。

如果你使用透视相机制作2D游戏,你可能会使用TransparencySortMode.Orthographic,对象是基于与相机的距离的视图排序。

Variables 变量

DefaultDefault transparency sorting mode.
默认透明度排序模式。
PerspectivePerspective transparency sorting mode.
透视透明度排序模式。
OrthographicOrthographic transparency sorting mode.
正投射的透明度排序模式。
script/unityengine/enumerations/transparencysortmode/transparencysortmode.txt · 最后更改: 2016/10/08 04:04 由 emjo