Add this component to your Cinemachine Virtual Camera to have it shake when calling its ShakeCamera methods.
More...
|
virtual float | GetTime () |
|
virtual float | GetDeltaTime () |
|
virtual void | ShakeCamera (float duration, bool infinite, bool useUnscaledTime=false) |
| Use this method to shake the camera for the specified duration (in seconds) with the default amplitude and frequency More...
|
|
virtual void | ShakeCamera (float duration, float amplitude, float frequency, bool infinite, bool useUnscaledTime=false) |
| Use this method to shake the camera for the specified duration (in seconds), amplitude and frequency More...
|
|
virtual void | CameraReset () |
| Resets the camera's noise values to their idle values More...
|
|
virtual void | OnCameraShakeEvent (float duration, float amplitude, float frequency, float amplitudeX, float amplitudeY, float amplitudeZ, bool infinite, int channel, bool useUnscaledTime) |
|
virtual void | OnCameraShakeStopEvent (int channel) |
|
|
virtual void | Awake () |
| On awake we grab our components More...
|
|
virtual void | Start () |
| On Start we reset our camera to apply our base amplitude and frequency More...
|
|
virtual void | Update () |
|
virtual IEnumerator | ShakeCameraCo (float duration, float amplitude, float frequency, bool infinite, bool useUnscaledTime) |
| This coroutine will shake the More...
|
|
virtual void | OnEnable () |
|
virtual void | OnDisable () |
|
virtual void | TestShake () |
|
Add this component to your Cinemachine Virtual Camera to have it shake when calling its ShakeCamera methods.
◆ Awake()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.Awake |
( |
| ) |
|
|
protectedvirtual |
On awake we grab our components
◆ CameraReset()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.CameraReset |
( |
| ) |
|
|
virtual |
Resets the camera's noise values to their idle values
◆ GetDeltaTime()
virtual float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.GetDeltaTime |
( |
| ) |
|
|
virtual |
◆ GetTime()
virtual float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.GetTime |
( |
| ) |
|
|
virtual |
◆ OnCameraShakeEvent()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.OnCameraShakeEvent |
( |
float |
duration, |
|
|
float |
amplitude, |
|
|
float |
frequency, |
|
|
float |
amplitudeX, |
|
|
float |
amplitudeY, |
|
|
float |
amplitudeZ, |
|
|
bool |
infinite, |
|
|
int |
channel, |
|
|
bool |
useUnscaledTime |
|
) |
| |
|
virtual |
◆ OnCameraShakeStopEvent()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.OnCameraShakeStopEvent |
( |
int |
channel | ) |
|
|
virtual |
◆ OnDisable()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.OnDisable |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ ShakeCamera() [1/2]
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.ShakeCamera |
( |
float |
duration, |
|
|
bool |
infinite, |
|
|
bool |
useUnscaledTime = false |
|
) |
| |
|
virtual |
Use this method to shake the camera for the specified duration (in seconds) with the default amplitude and frequency
- Parameters
-
◆ ShakeCamera() [2/2]
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.ShakeCamera |
( |
float |
duration, |
|
|
float |
amplitude, |
|
|
float |
frequency, |
|
|
bool |
infinite, |
|
|
bool |
useUnscaledTime = false |
|
) |
| |
|
virtual |
Use this method to shake the camera for the specified duration (in seconds), amplitude and frequency
- Parameters
-
duration | Duration. |
amplitude | Amplitude. |
frequency | Frequency. |
◆ ShakeCameraCo()
virtual IEnumerator MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.ShakeCameraCo |
( |
float |
duration, |
|
|
float |
amplitude, |
|
|
float |
frequency, |
|
|
bool |
infinite, |
|
|
bool |
useUnscaledTime |
|
) |
| |
|
protectedvirtual |
This coroutine will shake the
- Returns
- The camera co.
- Parameters
-
duration | Duration. |
amplitude | Amplitude. |
frequency | Frequency. |
◆ Start()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we reset our camera to apply our base amplitude and frequency
◆ TestShake()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.TestShake |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
virtual void MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.Update |
( |
| ) |
|
|
protectedvirtual |
◆ _initialPosition
Vector3 MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._initialPosition |
|
protected |
◆ _initialRotation
Quaternion MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._initialRotation |
|
protected |
◆ _perlin
Cinemachine.CinemachineBasicMultiChannelPerlin MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._perlin |
|
protected |
◆ _targetAmplitude
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._targetAmplitude |
|
protected |
◆ _targetFrequency
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._targetFrequency |
|
protected |
◆ _timescaleMode
TimescaleModes MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._timescaleMode |
|
protected |
◆ _virtualCamera
Cinemachine.CinemachineVirtualCamera MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker._virtualCamera |
|
protected |
◆ Channel
int MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.Channel = 0 |
the channel to receive events on
◆ DefaultShakeAmplitude
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.DefaultShakeAmplitude = .5f |
The default amplitude that will be applied to your shakes if you don't specify one.
◆ DefaultShakeFrequency
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.DefaultShakeFrequency = 10f |
The default frequency that will be applied to your shakes if you don't specify one.
◆ IdleAmplitude
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.IdleAmplitude |
the amplitude of the camera's noise when it's idle
◆ IdleFrequency
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.IdleFrequency = 1f |
the frequency of the camera's noise when it's idle
◆ LerpSpeed
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.LerpSpeed = 5f |
the speed at which to interpolate the shake
◆ TestAmplitude
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.TestAmplitude = 2f |
the amplitude to apply when testing this shake via the TestShake button
◆ TestDuration
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.TestDuration = 0.3f |
a duration (in seconds) to apply when testing this shake via the TestShake button
◆ TestFrequency
float MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.TestFrequency = 20f |
the frequency to apply when testing this shake via the TestShake button
◆ TestShakeButton
bool MoreMountains.FeedbacksForThirdParty.MMCinemachineCameraShaker.TestShakeButton |
The documentation for this class was generated from the following file: