Events used to trigger faders on or off.
More...
|
| | MMFadeEvent (float duration, float targetAlpha, MMTweenType tween, int id=0, bool ignoreTimeScale=true, Vector3 worldPosition=new Vector3()) |
| | Initializes a new instance of the MoreMountains.MMInterface.MMFadeEvent struct.
|
|
| static void | Trigger (float duration, float targetAlpha) |
| static void | Trigger (float duration, float targetAlpha, MMTweenType tween, int id=0, bool ignoreTimeScale=true, Vector3 worldPosition=new Vector3()) |
|
| int | ID |
| | an ID that has to match the one on the fader
|
| float | Duration |
| | the duration of the fade, in seconds
|
| float | TargetAlpha |
| | the alpha to aim for
|
| MMTweenType | Curve |
| | the curve to apply to the fade
|
| bool | IgnoreTimeScale |
| | whether or not this fade should ignore timescale
|
| Vector3 | WorldPosition |
| | a world position for a target object. Useless for regular fades, but can be useful for alt implementations (circle fade for example)
|
Events used to trigger faders on or off.
◆ MMFadeEvent()
| MoreMountains.Tools.MMFadeEvent.MMFadeEvent |
( |
float | duration, |
|
|
float | targetAlpha, |
|
|
MMTweenType | tween, |
|
|
int | id = 0, |
|
|
bool | ignoreTimeScale = true, |
|
|
Vector3 | worldPosition = new Vector3() ) |
Initializes a new instance of the MoreMountains.MMInterface.MMFadeEvent struct.
- Parameters
-
| duration | Duration, in seconds. |
| targetAlpha | Target alpha, from 0 to 1. |
◆ Trigger() [1/2]
| void MoreMountains.Tools.MMFadeEvent.Trigger |
( |
float | duration, |
|
|
float | targetAlpha ) |
|
static |
◆ Trigger() [2/2]
| void MoreMountains.Tools.MMFadeEvent.Trigger |
( |
float | duration, |
|
|
float | targetAlpha, |
|
|
MMTweenType | tween, |
|
|
int | id = 0, |
|
|
bool | ignoreTimeScale = true, |
|
|
Vector3 | worldPosition = new Vector3() ) |
|
static |
◆ Curve
the curve to apply to the fade
◆ Duration
| float MoreMountains.Tools.MMFadeEvent.Duration |
the duration of the fade, in seconds
◆ ID
| int MoreMountains.Tools.MMFadeEvent.ID |
an ID that has to match the one on the fader
◆ IgnoreTimeScale
| bool MoreMountains.Tools.MMFadeEvent.IgnoreTimeScale |
whether or not this fade should ignore timescale
◆ TargetAlpha
| float MoreMountains.Tools.MMFadeEvent.TargetAlpha |
◆ WorldPosition
| Vector3 MoreMountains.Tools.MMFadeEvent.WorldPosition |
a world position for a target object. Useless for regular fades, but can be useful for alt implementations (circle fade for example)
The documentation for this struct was generated from the following file:
- H:/Code/MoreMountains/InventoryEngineStore/Assets/InventoryEngine/MMTools/Core/MMUI/MMFader.cs