Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

EditorToaster

Eredita: HBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object

Gestisce le notifiche toast all'interno dell'editor.

Descrizione

This object manages the functionality and display of toast notifications within the editor, ensuring immediate and informative alerts are presented to the user.

Note: This class shouldn't be instantiated directly. Instead, access the singleton using EditorInterface.get_editor_toaster().

Metodi

void

push_toast(message: String, severity: Severity = 0, tooltip: String = "")


Enumerazioni

enum Severity: 🔗

Severity SEVERITY_INFO = 0

Il toast verrà visualizzato con una severità INFO.

Severity SEVERITY_WARNING = 1

Il toast verrà visualizzato con una severità WARNING (Avviso) e ha un colore corrispondente.

Severity SEVERITY_ERROR = 2

Il toast verrà visualizzato con una severità ERROR (errore) e ha un colore corrispondente.


Descrizioni dei metodi

void push_toast(message: String, severity: Severity = 0, tooltip: String = "") 🔗

Invia una notifica toast all'editor affinché la visualizzi.