Table of Contents

Class ScreenShake

Namespace
Global
Assembly
Assembly-CSharp.dll
public class ScreenShake : MonoBehaviour
Inheritance
ScreenShake

Constructors

ScreenShake()

public ScreenShake()

Fields

instance

public static ScreenShake instance

Field Value

ScreenShake

vrShake

public ScreenShakeVR vrShake

Field Value

ScreenShakeVR

Properties

shakeEffect

public MonoBehaviour shakeEffect { get; }

Property Value

MonoBehaviour

Methods

TriggerShake(ShakeProfile)

public static void TriggerShake(ScreenShake.ShakeProfile shake)

Parameters

shake ScreenShake.ShakeProfile

TriggerShake(ShakeProfile, VignetteProfile)

public static void TriggerShake(ScreenShake.ShakeProfile shake, ScreenShake.VignetteProfile vignette)

Parameters

shake ScreenShake.ShakeProfile
vignette ScreenShake.VignetteProfile

TriggerShakeAttenuated(ShakeProfile, VignetteProfile, Vector3, float, float)

public static void TriggerShakeAttenuated(ScreenShake.ShakeProfile shake, ScreenShake.VignetteProfile vignette, Vector3 origin, float nearDist, float farDist)

Parameters

shake ScreenShake.ShakeProfile
vignette ScreenShake.VignetteProfile
origin Vector3
nearDist float
farDist float

TriggerShakeAttenuated(ShakeProfile, Vector3, float, float)

public static void TriggerShakeAttenuated(ScreenShake.ShakeProfile shake, Vector3 origin, float nearDist, float farDist)

Parameters

shake ScreenShake.ShakeProfile
origin Vector3
nearDist float
farDist float