Quest tracker UI not showing up after accepting quest

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
moodyloo
Posts: 5
Joined: Sat Feb 12, 2022 11:21 am

Quest tracker UI not showing up after accepting quest

Post by moodyloo »

Hi,

When I give the player a quest using SetQuestState in the conversation script, the quest tracker UI doesn't appear on the top right hand corner. The quest does show up in the Quest Log UI.
Attachments
UI Quest Tracker
UI Quest Tracker
ui tracker.png (43.19 KiB) Viewed 318 times
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest tracker UI not showing up after accepting quest

Post by Tony Li »

Hi,

Please inspect your quest in the Dialogue Editor and make sure the 'Trackable' and 'Track On Start' checkboxes are ticked.
moodyloo
Posts: 5
Joined: Sat Feb 12, 2022 11:21 am

Re: Quest tracker UI not showing up after accepting quest

Post by moodyloo »

Yeah the trackable and track on start are all ticked, but the tracker UI is still hidden
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest tracker UI not showing up after accepting quest

Post by Tony Li »

Are no quests at all showing up in the tracker?

If you play DemoScene1 and quests don't show up in the tracker there either, it's possible that the quest tracker's PlayerPrefs value is set to hide the tracker.

The quest tracker has a PlayerPrefs Toggle Key value. The default key is "QuestTracker". If you have a PlayerPrefs tool such as Advanced PlayerPrefs Window, you can see if this key exists and is set to 0 (hidden). In this case, you can set it to 1 or just delete it.

Or you can write a script that calls your quest tracker's ShowTracker() method. This will show the tracker and set the PlayerPrefs key to 1. For example, temporarily drop this script onto the quest tracker:

Code: Select all

using UnityEngine;
using PixelCrushers.DialogueSystem;
public class ShowQuestTracker : MonoBehaviour
{
    void Start()
    {
        GetComponent<StandardUIQuestTracker().ShowTracker();
    }
}
moodyloo
Posts: 5
Joined: Sat Feb 12, 2022 11:21 am

Re: Quest tracker UI not showing up after accepting quest

Post by moodyloo »

Ah Ha! It was the playerPref problem. I used the PlayerPrefs Editor to check the QuestTracker value and it is indeed 0. I changed it to 1 and the tracker now appears! I think I clicked the "Clear PlayerPrefs Key" button by accident.

Many Thanks
-Ming
Attachments
QuestTracker.png
QuestTracker.png (17.55 KiB) Viewed 260 times
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest tracker UI not showing up after accepting quest

Post by Tony Li »

Glad to help!
Post Reply