Page 1 of 1

A phenomenon where multiple UI Trackers are not displayed.

Posted: Thu Oct 14, 2021 2:28 pm
by 2gold
Hello, Tony!
This time, I'm working on a quest, but I went back to the forum because there was a problem that could not be solved by watching a video tutorial or searching for a forum.

<MissionManager : UnityUIQuestTracker>
Sample_MssionManager.png
Sample_MssionManager.png (23.03 KiB) Viewed 338 times
ItemMission
Sample_ItemMission.png
Sample_ItemMission.png (22 KiB) Viewed 338 times
I watched the video tutorial for Quest and the Quest-Tracker-Templet, attached the Quest Tracker Component to the Quest Manager, and attached the Quest TrackTemplet to the Item_MissionList.

And for the test, I put the script in the Lua Code as follows. (My game quests need to be registered at the end of the scene loading.)
SetQuestState("Check_Engine","active")
SetQuestState("Check_AiRoom","active")
Sample_mission.png
Sample_mission.png (5.65 KiB) Viewed 338 times
The quest for the first Check_Engine is displayed normally as follows, but the quest for the second Check_AIROOM is not displayed. May I know the reason?

[+]
Sample_Complete.png
Sample_Complete.png (4.3 KiB) Viewed 338 times
Also, we will make the following UI feedback according to the quest status. In order to handle this function, should we write a custom script that inherits the UnityUIQuestTracker?

Thank you in advance for your help!

Re: A phenomenon where multiple UI Trackers are not displayed.

Posted: Thu Oct 14, 2021 3:54 pm
by Tony Li
Hi,

If possible, use StandardUIQuestTracker instead of UnityUIQuestTracker. UnityUIQuestTracker is deprecated. (StandardUIQuestTracker API)

The setup of StandardUIQuestTracker is very similar to UnityUIQuestTracker, so you shouldn't have much trouble updating to the current StandardUIQuestTracker system.

For SetQuestState("Check_AiRoom","active"), make sure the quest name is spelled correctly, including punctuation and capitalization. Also check for any errors or warnings in the Console window.

You can also use the Watches tab to double-check that the value has been set correctly.

Re: A phenomenon where multiple UI Trackers are not displayed.

Posted: Mon Oct 25, 2021 3:11 am
by 2gold
I forgot to check this topic!
It was simply because I forgot to check Quest's Tackable and Tack on Start.
Thank you for always helping me!

Re: A phenomenon where multiple UI Trackers are not displayed.

Posted: Mon Oct 25, 2021 8:32 am
by Tony Li
Glad you got it working! :-)