Class FeedbackTiming
Small numeric constants shared, verbatim (same name, same value, same purpose), by more than one
feedback channel — extracted so the shared value has one place to change. A constant that merely
happens to share a numeric value with one of these but serves a different concept is intentionally
NOT folded in here (e.g. HitStopChannel's near-zero Time.timeScale guard also uses
0.0001f, but that is a time-scale threshold, not an effect-duration floor — renaming it to a
duration constant would be a misleading merge, not a real deduplication).
Inherited Members
Namespace: Serenity.Feedback.Infrastructure.Channels
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public static class FeedbackTiming
Fields
DefaultDirectionChangePeriodSeconds
Default direction-change period used by DecayingJitterMotion when a shake's authored
Frequency is zero or negative. Shared by ScreenShakeChannel and UiScreenShakeChannel.
Declaration
public const float DefaultDirectionChangePeriodSeconds = 0.05
Field Value
| Type | Description |
|---|---|
| float |
MinimumEffectDurationSeconds
Floor applied to an authored effect duration before it drives a decay or frame-budget
calculation, so a zero/negative duration never causes a divide-by-zero or a degenerate loop.
Shared by ScreenFlashChannel and (via DecayingJitterMotion) ScreenShakeChannel
/ UiScreenShakeChannel.
Declaration
public const float MinimumEffectDurationSeconds = 0.0001
Field Value
| Type | Description |
|---|---|
| float |
PersistentAmplitudeDecay
Constant amplitude-decay factor (no decay) used by DecayingJitterMotion while a persistent
shake sustains. Shared by ScreenShakeChannel and UiScreenShakeChannel.
Declaration
public const float PersistentAmplitudeDecay = 1
Field Value
| Type | Description |
|---|---|
| float |