Description

反射探针清除背景的方式。

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; } }

另请参阅:ReflectionProbeClearFlags