Class ScreenFlashChannel
Feedback channel that produces a full-screen color flash via a lazily-created overlay.
Handles ScreenFlashEffect. Target-agnostic (one overlay drives all players).
Runs on unscaled time so the flash is visible even during a hit-stop.
Inheritance
ScreenFlashChannel
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public class ScreenFlashChannel : IFeedbackChannel
Constructors
ScreenFlashChannel(IFeedbackRuntime)
Initializes a new ScreenFlashChannel.
Declaration
public ScreenFlashChannel(IFeedbackRuntime runtime)
Parameters
| Type |
Name |
Description |
| IFeedbackRuntime |
runtime |
Coroutine host used to run and cancel the fade routine.
|
Properties
ChannelId
Declaration
public string ChannelId { get; }
Property Value
Methods
CanPlay(IFeedbackEffect)
Declaration
public bool CanPlay(IFeedbackEffect effect)
Parameters
Returns
Play(FeedbackTarget, IFeedbackEffect)
Declaration
public void Play(FeedbackTarget target, IFeedbackEffect effect)
Parameters
Stop(FeedbackTarget)
Declaration
public void Stop(FeedbackTarget target)
Parameters
StopAll()
Declaration
Implements