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.
Quest tracker UI not showing up after accepting quest
Quest tracker UI not showing up after accepting quest
- Attachments
-
- UI Quest Tracker
- ui tracker.png (43.19 KiB) Viewed 316 times
Re: Quest tracker UI not showing up after accepting quest
Hi,
Please inspect your quest in the Dialogue Editor and make sure the 'Trackable' and 'Track On Start' checkboxes are ticked.
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
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
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:
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
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
Many Thanks
-Ming
- Attachments
-
- QuestTracker.png (17.55 KiB) Viewed 258 times