# onStateChanged

> Sets the callback that will be called when a sphere's visibility and/or distance state has changed.

## Definition

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

```csharp
public CullingGroup.StateChanged onStateChanged { get; set; }
```
