SolidColor
Clear with a background color.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SolidColor = 2
Remarks
Additional Resources: ReflectionProbe.clearFlags property.
Examples
using UnityEngine;using System.Collections;public class ExampleScript : MonoBehaviour{ void Start() { ReflectionProbe probe = GetComponent<ReflectionProbe>(); // Clear with background color (ignore any skyboxes) probe.clearFlags = UnityEngine.Rendering.ReflectionProbeClearFlags.SolidColor; }}