Hi,
Is it possible for other scripts to access the Alert HUD? How would I do that?
Access Alert [SOLVED]
-
- Posts: 118
- Joined: Thu Dec 19, 2019 7:38 am
Access Alert [SOLVED]
Last edited by mschoenhals on Sun Dec 29, 2019 8:05 pm, edited 1 time in total.
Re: Access Alert
Hi,
In script, you can use QuestMachine.defaultQuestAlertUI.ShowAlert. There are 3 variations that allow you to show different types of content. The simplest is a text string:
If you want to hook up a UnityEvent in the inspector, add a QuestControl component, and configure the event to call QuestControl.ShowAlert.
In script, you can use QuestMachine.defaultQuestAlertUI.ShowAlert. There are 3 variations that allow you to show different types of content. The simplest is a text string:
Code: Select all
QuestMachine.defaultQuestAlertUI.ShowAlert("Hello world");
-
- Posts: 118
- Joined: Thu Dec 19, 2019 7:38 am
Re: Access Alert
This works perfectly!
Thank you.
Thank you.