Add this class to a Camera with a HDRP color adjustments post processing and it'll be able to "shake" its values by getting events
More...
|
virtual void | OnMMColorGradingShakeEvent (AnimationCurve shakePostExposure, float remapPostExposureZero, float remapPostExposureOne, AnimationCurve shakeHueShift, float remapHueShiftZero, float remapHueShiftOne, AnimationCurve shakeSaturation, float remapSaturationZero, float remapSaturationOne, AnimationCurve shakeContrast, float remapContrastZero, float remapContrastOne, ColorFilterModes colorFilterMode, Gradient colorFilterGradient, Color colorFilterDestination, AnimationCurve colorFilterCurve, float duration, bool relativeValues=false, float attenuation=1.0f, int channel=0, bool resetShakerValuesAfterShake=true, bool resetTargetValuesAfterShake=true, bool forwardDirection=true, TimescaleModes timescaleMode=TimescaleModes.Scaled, bool stop=false) |
| When we get the appropriate event, we trigger a shake More...
|
|
override void | StartListening () |
| Starts listening for events More...
|
|
override void | StopListening () |
| Stops listening for events More...
|
|
virtual float | GetTime () |
|
virtual float | GetDeltaTime () |
|
virtual void | StartShaking () |
| Starts shaking the values More...
|
|
virtual void | Play () |
| Starts this shaker More...
|
|
virtual void | Stop () |
| Stops this shaker More...
|
|
|
bool | RelativeValues = true |
| whether or not to add to the initial value More...
|
|
AnimationCurve | ShakePostExposure = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0)) |
| the curve used to animate the focus distance value on More...
|
|
float | RemapPostExposureZero = 0f |
| the value to remap the curve's 0 to More...
|
|
float | RemapPostExposureOne = 1f |
| the value to remap the curve's 1 to More...
|
|
AnimationCurve | ShakeHueShift = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0)) |
| the curve used to animate the aperture value on More...
|
|
float | RemapHueShiftZero = 0f |
| the value to remap the curve's 0 to More...
|
|
float | RemapHueShiftOne = 180f |
| the value to remap the curve's 1 to More...
|
|
AnimationCurve | ShakeSaturation = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0)) |
| the curve used to animate the focal length value on More...
|
|
float | RemapSaturationZero = 0f |
| the value to remap the curve's 0 to More...
|
|
float | RemapSaturationOne = 100f |
| the value to remap the curve's 1 to More...
|
|
AnimationCurve | ShakeContrast = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0)) |
| the curve used to animate the focal length value on More...
|
|
float | RemapContrastZero = 0f |
| the value to remap the curve's 0 to More...
|
|
float | RemapContrastOne = 100f |
| the value to remap the curve's 1 to More...
|
|
ColorFilterModes | ColorFilterMode = ColorFilterModes.None |
| the color filter mode to work with (none, over a gradient, or interpolate to a destination color More...
|
|
Gradient | ColorFilterGradient |
| the gradient over which to modify the color filter More...
|
|
Color | ColorFilterDestination = Color.yellow |
| the destination color to match when in Interpolate mode More...
|
|
AnimationCurve | ColorFilterCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0)) |
| the curve over which to interpolate the color filter More...
|
|
int | Channel = 0 |
| the channel to listen to - has to match the one on the feedback More...
|
|
float | ShakeDuration = 0.2f |
| the duration of the shake, in seconds More...
|
|
bool | PlayOnAwake = false |
| if this is true this shaker will play on awake More...
|
|
bool | Interruptible = true |
| if this is true, a new shake can happen while shaking More...
|
|
bool | AlwaysResetTargetValuesAfterShake = false |
| if this is true, this shaker will always reset target values, regardless of how it was called More...
|
|
float | CooldownBetweenShakes = 0f |
| a cooldown, in seconds, after a shake, during which no other shake can start More...
|
|
bool | Shaking = false |
| whether or not this shaker is shaking right now More...
|
|
bool | ForwardDirection = true |
|
TimescaleModes | TimescaleMode = TimescaleModes.Scaled |
|
|
override void | Initialization () |
| On init we initialize our values More...
|
|
virtual void | Reset () |
| When that shaker gets added, we initialize its shake duration More...
|
|
override void | Shake () |
| Shakes values over time More...
|
|
override void | GrabInitialValues () |
| Collects initial values on the target More...
|
|
override void | ResetTargetValues () |
| Resets the target's values More...
|
|
override void | ResetShakerValues () |
| Resets the shaker's values More...
|
|
virtual void | Awake () |
| On Awake we grab our volume and profile More...
|
|
virtual void | ShakeStarts () |
| Describes what happens when a shake starts More...
|
|
virtual void | Update () |
| On Update, we shake our values if needed, or reset if our shake has ended More...
|
|
virtual float | ShakeFloat (AnimationCurve curve, float remapMin, float remapMax, bool relativeIntensity, float initialValue) |
| A method used to "shake" a flot over time along a curve More...
|
|
virtual void | ShakeComplete () |
| Describes what happens when the shake is complete More...
|
|
virtual void | OnEnable () |
| On enable we start shaking if needed More...
|
|
virtual void | OnDestroy () |
| On destroy we stop listening for events More...
|
|
virtual void | OnDisable () |
| On disable we complete our shake if it was in progress More...
|
|
virtual bool | CheckEventAllowed (int channel, bool useRange=false, float range=0f, Vector3 eventOriginPosition=default(Vector3)) |
| Returns true if this shaker should listen to events, false otherwise More...
|
|
Add this class to a Camera with a HDRP color adjustments post processing and it'll be able to "shake" its values by getting events