# clearFlags

> How the reflection probe clears the background.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public ReflectionProbeClearFlags clearFlags { get; set; }
```

### Remarks

Can be [ReflectionProbeClearFlags.Skybox](/engine/6000.7/script-reference/unityengine/rendering/reflectionprobeclearflags/skybox.md) or [ReflectionProbeClearFlags.SolidColor](/engine/6000.7/script-reference/unityengine/rendering/reflectionprobeclearflags/solidcolor.md).

```csharp
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](/engine/6000.7/script-reference/unityengine/rendering/reflectionprobeclearflags.md).
