用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:lodgroup:lodgroup

LODGroup 细节等级组

class in UnityEngine/Inherits from: Component

Description 描述

LODGroup lets you group multiple Renderers into LOD levels.

LODGroup 让你组织许多的渲染器到LOD等级中。

This can be used to switch between different LOD levels at runtime based on size on screen.

该属性可以被用于实时地在不同LOD等级之间转换基于屏幕的尺寸。

Static Variables 静态变量

crossFadeAnimationDurationThe cross-fading animation duration in seconds. ArgumentException will be thrown if it is set to zero or a negative value.
交叉淡入淡出动画持续时间(单位秒)。如果该值设置为0或者为负值则抛出参数异常。

Variables 变量

animateCrossFadingSpecify if the cross-fading should be animated by time. The animation duration is specified globally as crossFadeAnimationDuration.
指定同时淡入淡出是否按时间进行动画处理。crossFadeAnimationDuration指定全局动画持续时间。
enabledEnable / Disable the LODGroup - Disabling will turn off all renderers.
启用/禁用LODGroup——禁用将会关闭所有渲染器。
fadeModeThe LOD fade mode used.
使用的LOD淡入淡出模式。
localReferencePointThe local reference point against which the LOD distance is calculated.
LOD距离计算本地参考点。
lodCountThe number of LOD levels.
细节等级的数量。
sizeThe size of the LOD object in local space.
在本地空间中LOD对象的尺寸。

Public Functions 公共函数

ForceLOD
GetLODsReturns the array of LODs.
返回细节数组。
RecalculateBoundsRecalculate the bounding region for the LODGroup (Relatively slow, do not call often).
重新计算细节组的边界范围(相当慢,不要经常调用)。
SetLODsSet the LODs for the LOD group. This will remove any existing LODs configured on the LODGroup.
为细节组设置细节。这将会从细节组中移除任何存在的细节配置。
script/unityengine/classes/lodgroup/lodgroup.txt · 最后更改: 2016/08/02 05:29 (外部编辑)