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. More...
|
|
|
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()) |
|
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]
static void MoreMountains.Tools.MMFadeEvent.Trigger |
( |
float |
duration, |
|
|
float |
targetAlpha |
|
) |
| |
|
static |
◆ Trigger() [2/2]
static 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:
- F:/Github/Store/Feel/Assets/Feel/MMTools/Core/MMUI/MMFader.cs