Skip to content

Get Sansar

Script API

CameraShakeHandle

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Simulation New in 47.10.0

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

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

KindMembers
MethodsStop New in 47.10.0

Methods

Stop

New in 47.10.0
public void Stop(float fadeOut)

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

ParameterTypeDescription
fadeOutfloatEnding fade in seconds, clamped to 0 through 5; defaults to 0.1.
Remarks

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.

Used in examples

  • CameraShakeExample.cs

Generated from the Sansar 47.10.0 client ScriptApi snapshot.