文档

Unity Engine

Unity Engine

clearFlags

How the reflection probe clears the background.
阅读时间1 分钟最后更新于 3 小时前

Definition

public ReflectionProbeClearFlags clearFlags { get; set; }

Remarks

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; }}
Additional Resources: ReflectionProbeClearFlags.