Hello,
I have a question regarding the Quest UI.
I have made my own template and now I want to show all active quests with the description.
Which Lua command do I need to read all active quests into a list?
Thank you for your help
Yours sincerely
Quest UI
Re: Quest UI
Hi,
There are two ways:
1. Add a Standard UI Quest Log Window component to your quest UI, and assign the UI elements to it. The component will handle everything such as populating the quest list into a scroll rect. To see how it works, you can temporarily add one of the existing quest log UI prefabs into your scene.
2. Or, if you want to bypass the Standard UI Quest Log Window script and write your own, you can directly read the quest list using QuestLog.GetAllQuests(). The QuestLog class has several other functions, too, to get quest group names, quest states, etc.
There are two ways:
1. Add a Standard UI Quest Log Window component to your quest UI, and assign the UI elements to it. The component will handle everything such as populating the quest list into a scroll rect. To see how it works, you can temporarily add one of the existing quest log UI prefabs into your scene.
2. Or, if you want to bypass the Standard UI Quest Log Window script and write your own, you can directly read the quest list using QuestLog.GetAllQuests(). The QuestLog class has several other functions, too, to get quest group names, quest states, etc.