Page 1 of 1
Quest tracker UI not showing up after accepting quest
Posted: Sun Feb 13, 2022 2:24 pm
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.
Re: Quest tracker UI not showing up after accepting quest
Posted: Sun Feb 13, 2022 3:33 pm
by Tony Li
Hi,
Please inspect your quest in the Dialogue Editor and make sure the 'Trackable' and 'Track On Start' checkboxes are ticked.
Re: Quest tracker UI not showing up after accepting quest
Posted: Sun Feb 13, 2022 4:24 pm
by moodyloo
Yeah the trackable and track on start are all ticked, but the tracker UI is still hidden
Re: Quest tracker UI not showing up after accepting quest
Posted: Sun Feb 13, 2022 7:58 pm
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();
}
}
Re: Quest tracker UI not showing up after accepting quest
Posted: Mon Feb 14, 2022 12:51 pm
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
Re: Quest tracker UI not showing up after accepting quest
Posted: Mon Feb 14, 2022 1:02 pm
by Tony Li
Glad to help!