文档

Unity Engine

Unity Engine

useReflectionProbes

Enables reflections on the Canvas when Canvas.renderMode is set to World Space.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public bool useReflectionProbes { get; set; }

Remarks

When enabled, the Canvas is registered with the Reflection Probe system. The system selects the most appropriate reflection probe based on the Canvas's world position and binds it to all shaders on the Canvas. All shaders on the Canvas can then access the reflection probe cube map and the normal vector to calculate reflections accurately.