返回介绍

QualitySettings 质量设置

发布于 2019-12-18 15:38:21 字数 7957 浏览 1906 评论 0 收藏 0

class in UnityEngine/Inherits from: Object

Description 描述

Script interface for Quality Settings.

质量设置的脚本接口。

There can be an arbitrary number of quality settings. The details of each are set up in the project's Quality Settings. At run time, the current quality level can be changed using this class.

这可以是任意数量的质量设置。在工程质量中设置每个细节。在运行时,当前质量级别可以使用该类改变。

Static Variables 静态脚本

activeColorSpaceActive color space (Read Only).
激活色彩空间(只读)。
anisotropicFilteringGlobal anisotropic filtering mode.
全球各向异性过滤模式。
antiAliasingSet The AA Filtering option.
设置AA过滤选项。
asyncUploadBufferSizeAsync texture upload provides timesliced async texture upload on the render thread with tight control over memory and timeslicing. There are no allocations except for the ones which driver has to do. To read data and upload texture data a ringbuffer whose size can be controlled is re-used.Use asyncUploadBufferSize to set the buffer size for asynchronous texture uploads. The size is in megabytes. Minimum value is 2 and maximum is 512. Although the buffer will resize automatically to fit the largest texture currently loading, it is recommended to set the value approximately to the size of biggest texture used in the scene to avoid re-sizing of the buffer which can incur performance cost.
异步纹理上传具有严格控制内存和 timeslicing 的渲染线程提供 timesliced 异步纹理上传。内存没有分配除了哪个驱动程序运行。读取数据并重新使用ringbuffer可以控制其大小的纹理数据上传。使用asyncUploadBufferSize去设置异步纹理上传的缓存大小。该缓存大小单位MB。最小值为2和最大值是512.尽管缓存会自动调整大小去适应当前加载的最大纹理,但是推荐设置该值近似于在场景中使用的最大纹理,已避免重新测量缓存,花费大量性能。
asyncUploadTimeSliceAsync texture upload provides timesliced async texture upload on the render thread with tight control over memory and timeslicing. There are no allocations except for the ones which driver has to do. To read data and upload texture data a ringbuffer whose size can be controlled is re-used.Use asyncUploadTimeSlice to set the time-slice in milliseconds for asynchronous texture uploads per frame. Minimum value is 1 and maximum is 33.
异步纹理上传具有严格控制内存和 timeslicing 的渲染线程提供 timesliced 异步纹理上传。内存没有分配除了哪个驱动程序运行。读取数据并重新使用ringbuffer可以控制其大小的纹理数据上传。在每帧异步纹路上传时,使用asyncUploadTimeSlice 去设置时间段单位毫秒。最小值是1并且最大值是33.
billboardsFaceCameraPositionIf enabled, billboards will face towards camera position rather than camera orientation.
如果启用,广告牌将会面朝摄像机位置而不是摄像机方向。
blendWeightsBlend weights.
混合宽度。
desiredColorSpaceDesired color space (Read Only).
需求的色彩空间(只读)。
lodBiasGlobal multiplier for the LOD's switching distance.
LOD的转换距离的总倍数。
masterTextureLimitA texture size limit applied to all textures.
一个纹理大小限制,应用于所有纹理。
maximumLODLevelA maximum LOD level. All LOD groups.
最大LOD级别。所有LOD组。
maxQueuedFramesMaximum number of frames queued up by graphics driver.
图形驱动程序队列的最大帧数。
namesThe indexed list of available Quality Settings.
可获取的质量设置的索引列表。
particleRaycastBudgetBudget for how many ray casts can be performed per frame for approximate collision testing.
预算大概的碰撞检测,每帧多少射线投射被执行。
pixelLightCountThe maximum number of pixel lights that should affect any object.
影响任意物体的最大像素光源数。
realtimeReflectionProbesEnables realtime reflection probes.
启用实时反射探测器。
shadowCascade2SplitThe normalized cascade distribution for a 2 cascade setup. The value defines the position of the cascade with respect to Zero.
对于2层级的归一化层级分布设置。该值定义的阴影层级位置相对于零。
shadowCascade4SplitThe normalized cascade start position for a 4 cascade setup. Each member of the vector defines the normalized position of the coresponding cascade with respect to Zero.
4级联设置的归一化层级开始位置。向量的每个成员定义的的归一化的层级的位置相对于零。
shadowCascadesNumber of cascades to use for directional light shadows.
用于平行光阴影的层叠数。
shadowDistanceShadow drawing distance.
阴影绘制的距离。
shadowNearPlaneOffsetOffset shadow frustum near plane.
近平面的阴影平截面。
shadowProjectionDirectional light shadow projection.
平行光投影。
softVegetationUse a two-pass shader for the vegetation in the terrain engine.
使用一个two-pass着色器,用于地形引擎中的植被。
vSyncCountThe VSync Count.
垂直同步数。

Static Functions 静态函数

DecreaseLevelDecrease the current quality level.
降低当前质量级别。
GetQualityLevelReturns the current graphics quality level.
返回当前图形质量级别。
IncreaseLevelIncrease the current quality level.
提升当前质量级别。
SetQualityLevelSets a new graphics quality level.
设置新的图形质量级别。

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

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

发布评论

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