Applies a decaying, presentation-only camera shake to a View.
More...
|
| | EarthquakeEffect (float durationSeconds, float intensityPx=8f, bool decay=true, int? randomSeed=null) |
| | Creates a camera-shake effect.
|
| void | Cancel () |
| | Cancels the effect and restores the presentation state that existed when it began.
|
|
| float | IntensityPx [get] |
| | Gets the maximum shake displacement in screen pixels.
|
| bool | Decay [get] |
| | Gets whether shake intensity falls to zero over the effect duration.
|
| Guid | Id = Guid.NewGuid() [get] |
| | Gets the effect's unique identifier.
|
| float | DurationSeconds [get] |
| | Gets the requested effect duration in seconds.
|
| EasingKind | Easing [get] |
| | Gets the easing curve used to transform normalized progress.
|
| EffectStatus | Status = EffectStatus.Pending [get] |
| | Gets the current lifecycle state.
|
| float | Progress [get] |
| | Gets the normalized, uneased progress in the range 0 through 1.
|
Applies a decaying, presentation-only camera shake to a View.
Definition at line 10 of file EarthquakeEffect.cs.
◆ EarthquakeEffect()
| Gondwana.Effects.EarthquakeEffect.EarthquakeEffect |
( |
float | durationSeconds, |
|
|
float | intensityPx = 8f, |
|
|
bool | decay = true, |
|
|
int? | randomSeed = null ) |
Creates a camera-shake effect.
- Parameters
-
| durationSeconds | The duration in seconds. |
| intensityPx | The intensity px. |
| decay | Whether the effect amplitude decreases over its duration. |
| randomSeed | The random seed. |
Definition at line 21 of file EarthquakeEffect.cs.
◆ ApplyProgress()
| override void Gondwana.Effects.EarthquakeEffect.ApplyProgress |
( |
float | progress | ) |
|
|
protected |
◆ OnStarting()
| override void Gondwana.Effects.EarthquakeEffect.OnStarting |
( |
| ) |
|
|
protectedvirtual |
◆ RestoreOriginalState()
| override void Gondwana.Effects.EarthquakeEffect.RestoreOriginalState |
( |
| ) |
|
|
protected |
◆ Decay
| bool Gondwana.Effects.EarthquakeEffect.Decay |
|
get |
Gets whether shake intensity falls to zero over the effect duration.
Definition at line 40 of file EarthquakeEffect.cs.
◆ IntensityPx
| float Gondwana.Effects.EarthquakeEffect.IntensityPx |
|
get |