A phenomenon where multiple UI Trackers are not displayed.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
2gold
Posts: 19
Joined: Wed Aug 18, 2021 2:56 am

A phenomenon where multiple UI Trackers are not displayed.

Post 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 299 times
ItemMission
Sample_ItemMission.png
Sample_ItemMission.png (22 KiB) Viewed 299 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 299 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 299 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!
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
2gold
Posts: 19
Joined: Wed Aug 18, 2021 2:56 am

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

Post 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!
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad you got it working! :-)
Post Reply