Class Toaster
Displays Toast(String).
By default, Easy Feedback will send submission status messages via the Toaster
attached to the Easy Feedback prefab. Toaster.Toast(string)
is added
as a callback on each of the submission events.
Customizing the Toast
You can customize the toast popup to your liking by modifying the Toast
prefab.
Namespace: AeLa.EasyFeedback.UI.Toaster
Assembly: cs.temp.dll.dll
Syntax
public class Toaster : MonoBehaviour
Fields
AnimationDuration
How long (seconds) the slide in/out animation takes
Declaration
protected float AnimationDuration
Field Value
Type | Description |
---|---|
Single |
Duration
How long (seconds) a message remains on screen
Declaration
protected float Duration
Field Value
Type | Description |
---|---|
Single |
PopupDirection
Direction the toast will move when it appears
Declaration
protected Toaster.PopoutDirection PopupDirection
Field Value
Type | Description |
---|---|
Toaster.PopoutDirection |
ToastPrefab
The toast prefab object
Declaration
protected Toast ToastPrefab
Field Value
Type | Description |
---|---|
Toast |
ViewportAnchor
Where the toast will appear on screen
Declaration
protected Toaster.ToastAnchor ViewportAnchor
Field Value
Type | Description |
---|---|
Toaster.ToastAnchor |
Methods
Toast(String)
Displays a toast with the provided message
Declaration
public void Toast(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |