Firstborn/Library/PackageCache/com.unity.cinemachine@2.8.9/Documentation~/CinemachineVirtualCameraNoi...
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

2.0 KiB

Noise properties

Use Noise properties in a Virtual Camera to simulate camera shake. Cinemachine includes a Basic Multi Channel Perlin component, which adds Perlin noise to the movement of the Virtual Camera. Perlin noise is a technique to compute random movement with a natural behavior.

Choosing the Basic Multi Channel Perlin component to add camera noise

The Basic Multi Channel Perlin component applies a noise profile. A noise profile is an Asset that defines the behavior of noise over time. Cinemachine includes a few noise profile assets. You can edit these and create your own.

To apply noise:

  1. Select your Virtual Camera in the Scene view or Hierarchy window.

  2. In the Inspector, use the Noise drop-down menu to choose Basic Multi Channel Perlin.

  3. In Noise Profile, choose an existing profile asset or create your own profile.

  4. Use Amplitude Gain and Frequency Gain to fine-tune the noise.

Properties

Property: Function:
Noise Profile The noise profile asset to use.
Amplitude Gain Gain to apply to the amplitudes defined in the noise profile. Use 1 to use the amplitudes defined in the noise profile. Setting this to 0 mutes the noise. Tip: Animate this property to ramp the noise effect up and down.
Frequency Gain Factor to apply to the frequencies defined in the noise profile. Use 1 to use the frequencies defined in the noise profile. Use larger values to shake the camera more rapidly. Tip: Animate this property to ramp the noise effect up and down.
Pivot Offset When rotating the camera, offset the camera's pivot by the indicated x, y, and z distance when applying rotational noise. This generates some positional variation that corresponds to the rotation noise.