返回介绍

CullingGroup 剔除组

发布于 2019-12-18 15:37:38 字数 3990 浏览 841 评论 0 收藏 0

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.
该委托用于当球的距离或可见状态改变时发送调用返回。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文