# CameraShakeHandle

Kind: Class · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span class="api-badge api-new">New in 47.10.0</span>
</div>

<span id="T:Sansar.Simulation.CameraShakeHandle"></span>

Stops a shake requested by the creating script; it does not report client playback.

```csharp
public sealed class CameraShakeHandle
```

## Remarks

Player comfort settings, VR limits, distance, expiry or capacity can reduce or suppress playback. A shake ends when the player leaves the world. Passing a handle to another script does not grant control. Garbage collection does not stop the shake.

## Members at a glance

| Kind | Members |
|---|---|
| **Methods** | [Stop](#stop)&#160;<span class="api-dot" title="New in 47.10.0"><span class="api-sr">New in 47.10.0</span></span> |

## Methods

### Stop

<div class="api-card">
<span id="M:Sansar.Simulation.CameraShakeHandle.Stop(System.Single)"></span>
<div class="api-badges"><span class="api-badge api-new">New in 47.10.0</span></div>

```csharp signature
public void Stop(float fadeOut)
```

Stops this shake with a fade in seconds; 0 stops immediately.

| Parameter | Type | Description |
|---|---|---|
| `fadeOut` | [float](https://learn.microsoft.com/dotnet/api/system.single) | Ending fade in seconds, clamped to 0 through 5; defaults to 0.1. |

<details class="api-remarks"><summary>Remarks</summary>

Only the creating script can stop this request. Repeated calls have no effect and do not prolong a fade. Stopping an inert or expired request has no visual effect.

</details>

</div>


## Used in examples

- `CameraShakeExample.cs`

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>