渲染设置包含场景中一系列视觉元素的值,例如雾效和环境光。
请注意,每个场景都有对应的渲染设置。
ambientEquatorColor | 来自侧面的环境光照。 |
ambientGroundColor | 来自下方的环境光照。 |
ambientIntensity | 来自环境光源的光照会对场景产生多大的影响。 |
ambientLight | 平面环境光照颜色。 |
ambientMode | 环境光照模式。 |
ambientProbe | 自定义或天空盒环境光照数据。 |
ambientSkyColor | 来自上方的环境光照。 |
customReflection | 自定义镜面反射立方体贴图。 |
defaultReflectionMode | 默认反射模式。 |
defaultReflectionResolution | 默认反射的立方体贴图分辨率。 |
flareFadeSpeed | 场景中所有光晕的淡化速度。 |
flareStrength | 场景中所有光晕的强度。 |
fog | 是否启用了雾效? |
fogColor | 雾效颜色。 |
fogDensity | 指数雾效的强度。 |
fogEndDistance | 线性雾效的结束距离。 |
fogMode | 要使用的雾模式。 |
fogStartDistance | 线性雾效的开始距离。 |
haloStrength | Light 光环的大小。 |
reflectionBounces | 反射包含其他反射的次数。 |
reflectionIntensity | 天空盒/自定义立方体贴图反射会对场景产生多大的影响。 |
skybox | 要使用的全局天空盒。 |
subtractiveShadowColor | Subtractive 光照模式下太阳阴影使用的颜色。 |
sun | 程序化天空盒使用的光照。 |
GetInstanceID | 返回对象的实例 ID。 |
ToString | 返回对象的名称。 |
Destroy | 移除 GameObject、组件或资源。 |
DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 |
FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | 克隆 original 对象并返回克隆对象。 |
bool | 该对象是否存在? |
operator != | 比较两个对象是否引用不同的对象。 |
operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.