Skip to content

CameraShaker.AddLimitedShake

S. Lucas Serrano edited this page Dec 6, 2022 · 8 revisions

CameraShaker.AddLimitedShake

Method

Increase the cam shake by a value, but never more than a max.

Overload Description
AddLimitedShake(float) Set the camera shake to a value, only if it is not already more than that.
AddLimitedShake(float, float) Increase the cam shake by a value, but never more than a max.

AddLimitedShake (float)

Set the camera shake to a value, only if it is not already more than that.

public void AddLimitedShake(float magnitude);

Parameters

Parameter Type Description
magnitude float The amount of shake to be added. Must be between 0 and 1.

AddLimitedShake (float, float)

Increase the cam shake by a value, but never more than a max.

public void AddLimitedShake(float magnitude, float max);

Parameters

Parameter Type Description
magnitude float The amount of shake to be added. Must be between 0 and 1.
max float The shake can only add to be as high as this value.