This class lets you create moving filters, very much like the old gelatin camera filters, that will move to connect to your camera Typically a moving filter should be made of a MMPostProcessingMovingFilter component, a PostProcessing volume, and a BoxCollider (recommended size is 1,1,1 if you want to use the default offset) The filter will move on the y axis.
More...
|
| virtual void | Start () |
| | On Start we initialize our filter.
|
| virtual void | Initialization () |
| | Sets the filter at the right initial position.
|
| virtual void | Update () |
| | On update we move if needed.
|
| virtual void | MoveTowardsCurrentTarget () |
| | Moves the filter towards its current target position.
|
| virtual void | OnEnable () |
| | On enable, we start listening to MMPostProcessingTriggerEvents.
|
| virtual void | OnDisable () |
| | On disable, we stop listening to MMPostProcessingTriggerEvents.
|
| virtual void | PostProcessingToggle () |
| | Toggles the post processing effect on or off.
|
| virtual void | PostProcessingTriggerOff () |
| | Turns the post processing effect off.
|
| virtual void | PostProcessingTriggerOn () |
| | Turns the post processing effect on.
|
This class lets you create moving filters, very much like the old gelatin camera filters, that will move to connect to your camera Typically a moving filter should be made of a MMPostProcessingMovingFilter component, a PostProcessing volume, and a BoxCollider (recommended size is 1,1,1 if you want to use the default offset) The filter will move on the y axis.
Use : MMPostProcessingMovingFilterEvent.Trigger(MMTween.MMTweenCurve.EaseInOutCubic, TrueOrFalse, Duration, ChannelID);
◆ TimeScales
| Enumerator |
|---|
| Unscaled | |
| Scaled | |
◆ Initialization()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.Initialization |
( |
| ) |
|
|
protectedvirtual |
Sets the filter at the right initial position.
◆ MoveTowardsCurrentTarget()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.MoveTowardsCurrentTarget |
( |
| ) |
|
|
protectedvirtual |
Moves the filter towards its current target position.
◆ OnDisable()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.OnDisable |
( |
| ) |
|
|
protectedvirtual |
On disable, we stop listening to MMPostProcessingTriggerEvents.
◆ OnEnable()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, we start listening to MMPostProcessingTriggerEvents.
◆ OnMMPostProcessingMovingFilterEvent()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.OnMMPostProcessingMovingFilterEvent |
( |
MMTweenType | curve, |
|
|
bool | active, |
|
|
bool | toggle, |
|
|
float | duration, |
|
|
int | channel = 0, |
|
|
bool | stop = false, |
|
|
bool | restore = false ) |
|
virtual |
if we get a PostProcessingTriggerEvent
- Parameters
-
| curve | |
| active | |
| duration | |
| channel | |
◆ PostProcessingToggle()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.PostProcessingToggle |
( |
| ) |
|
|
protectedvirtual |
Toggles the post processing effect on or off.
◆ PostProcessingTriggerOff()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.PostProcessingTriggerOff |
( |
| ) |
|
|
protectedvirtual |
Turns the post processing effect off.
◆ PostProcessingTriggerOn()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.PostProcessingTriggerOn |
( |
| ) |
|
|
protectedvirtual |
Turns the post processing effect on.
◆ RestoreInitialPosition()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.RestoreInitialPosition |
( |
| ) |
|
|
virtual |
◆ Start()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we initialize our filter.
◆ Update()
| virtual void MoreMountains.Tools.MMPostProcessingMovingFilter.Update |
( |
| ) |
|
|
protectedvirtual |
On update we move if needed.
◆ _duration
| float MoreMountains.Tools.MMPostProcessingMovingFilter._duration = 2f |
|
protected |
◆ _initialPosition
| Vector3 MoreMountains.Tools.MMPostProcessingMovingFilter._initialPosition |
|
protected |
◆ _lastMovementStartedAt
| float MoreMountains.Tools.MMPostProcessingMovingFilter._lastMovementStartedAt = 0f |
|
protected |
◆ _lastReachedState
| bool MoreMountains.Tools.MMPostProcessingMovingFilter._lastReachedState = false |
|
protected |
◆ _newPosition
| Vector3 MoreMountains.Tools.MMPostProcessingMovingFilter._newPosition |
|
protected |
◆ _positionToRestore
| Vector3 MoreMountains.Tools.MMPostProcessingMovingFilter._positionToRestore |
|
protected |
◆ Active
| bool MoreMountains.Tools.MMPostProcessingMovingFilter.Active = false |
whether the filter is active at start or not
◆ AddToInitialPosition
| bool MoreMountains.Tools.MMPostProcessingMovingFilter.AddToInitialPosition = true |
whether or not to add the initial position
◆ Channel
| int MoreMountains.Tools.MMPostProcessingMovingFilter.Channel = 0 |
the channel ID for this filter. Any event with a different channel ID will be ignored
◆ Curve
the curve to use for this movement
◆ FilterOffset
| Vector2 MoreMountains.Tools.MMPostProcessingMovingFilter.FilterOffset = new Vector2(0f, 5f) |
the vertical offsets to apply when the filter is on or off
◆ PostProcessingToggleButton
| bool MoreMountains.Tools.MMPostProcessingMovingFilter.PostProcessingToggleButton |
a test button to toggle the filter on or off
◆ PostProcessingTriggerOffButton
| bool MoreMountains.Tools.MMPostProcessingMovingFilter.PostProcessingTriggerOffButton |
a test button to turn the filter off
◆ PostProcessingTriggerOnButton
| bool MoreMountains.Tools.MMPostProcessingMovingFilter.PostProcessingTriggerOnButton |
a test button to turn the filter on
◆ TestDuration
| float MoreMountains.Tools.MMPostProcessingMovingFilter.TestDuration = 0.5f |
the duration to apply to the test methods
◆ TimeScale
whether this should use scaled or unscaled time
The documentation for this class was generated from the following file: