用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:cullinggroup:cullinggroup

CullingGroup 剔除组

class in UnityEngine

Description 描述

Describes a set of bounding spheres that should have their visibility and distances maintained.

描述了边界球的可视性和维持距离的集合。

Variables 变量

enabledPauses culling group execution.
暂停剔除组的执行。
onStateChangedSets the callback that will be called when a sphere's visibility and/or distance state has changed.
设置边界球的可见性或距离改变时的回调。
targetCameraLocks the CullingGroup to a specific camera.
锁定CullingGroup的目标相机。

Constructors 构造

CullingGroupCreate a CullingGroup.
创建剔除组。

Public Functions 公共函数

DisposeClean up all memory used by the CullingGroup immediately.
立即清除CullingGroup的所有内存。
EraseSwapBackErase a given bounding sphere by moving the final sphere on top of it.
删除当前数组最后一个边界球。
GetDistanceGet the current distance band index of a given sphere.
获取给定边界球到当前绑定点的距离。
IsVisibleReturns true if the bounding sphere at index is currently visible from any of the contributing cameras.
如果索引的边界球在任何可用的摄像机中可见,返回true。
QueryIndicesRetrieve the indices of spheres that have particular visibility and/or distance states.
检索拥有特别的可见的或者距离状态的球形索引。
SetBoundingDistancesSet bounding distances for 'distance bands' the group should compute, as well as options for how spheres falling into each distance band should be treated.
设置distance bands边界距离,以及选择球进入每个绑定距离应该如何对待。
SetBoundingSphereCountSets the number of bounding spheres in the bounding spheres array that are actually being used.
在实际上被使用的边界范围数组中设置边界范围数量。
SetBoundingSpheresSets the array of bounding sphere definitions that the CullingGroup should compute culling for.
设置CullingGroup计算剔除的边界范围定义的数组。
SetDistanceReferencePointSet the reference point from which distance bands are measured.
从测量的距离带设置参考点。

Delegates 委托

StateChangedThis delegate is used for recieving a callback when a sphere's distance or visibility state has changed.
该委托用于当球的距离或可见状态改变时发送调用返回。
script/unityengine/classes/cullinggroup/cullinggroup.txt · 最后更改: 2016/08/02 05:29 (外部编辑)