Learn more about displaying quests in your HUDs (and other UI).
You’ll usually display quests in a Quest type HUD. Quest layouts can also use HUDs to create a more complex UI, e.g. using value bars to show a task requirement’s count.
Displaying the player’s quests can get a bit complex. A quest consist of multiple quest tasks, each quest task containing quest task requirements (e.g. killing X enemies, collecting Y items, etc.), so you’ll have a list of quests, each displaying a list of quest tasks, each displaying a list of quest task requirements.
E.g. displaying attack modifiers Element and Attack Type:
- Quest A
- Task A
- Requirement A
- Requirement B
- Task B
- …
- Task A
- Quest B
- Task C
- Requirement C
- Task D
- Requirement D
- …
- Task C
Unity UI #
The Unity UI module displays quests, quest tasks and quest task requirements using HUD components.
Display text content information (e.g. name, description) of a quest using HUD Quest Text Content components. Use HUD Quest Task Text Content components to display a quest tasks’s content and HUD Quest Task Requirement Text Content components to display a quest task requirement’s content (details below).
You can also display a quest task requirement’s count as a value bar using ORK HUD Value Bar Content or ORK HUD Icon Bar Content components (Quest Task Requirement value type, see the HUD value bar content documentation for details).
For a practical setup, check out the Unity UI quest HUD tutorial.
HUD Quest List #
Use a HUD Quest List component to add the player’s quests. You can limit the displayed quests by their state (inactive, active, finished and failed) and quest type.
The component creates a quest using a defined prefab. The prefab requires a HUD Content Provider component at it’s root. The HUD Quest List component sets the content provider’s user (content) as the individual quest. The content provider further distributes the information to any content component on it. The prefab can use a HUD Quest Text Content component to display the quest’s content information and a HUD Quest Task List component to list the quest’s tasks.
You can use layout components to arrange the listed quests. E.g. use a Vertical Layout Group component to arrange the quests in a vertical list. See Unity’s documentation on UI setup and layout groups for details on this.
The context menu in the scene hierarchy has quick setup commands for creating a HUD with a quest list: ORK Framework > HUD > Quest > Quest List HUD (Vertical Layout, fit size)
The HUD Quest List component doesn’t require any special content provided.
HUD Quest Task List #
Use a HUD Quest Task List component to add the tasks of a quest. You can limit the displayed tasks by their state (inactive, active, finished and failed).
The component creates a quest task using a defined prefab. The prefab requires a HUD Content Provider component at it’s root. The HUD Quest Task List component sets the content provider’s user (content) as the individual quest task. The content provider further distributes the information to any content component on it. The prefab can use a HUD Quest Task Text Content component to display the quest task’s content information and a HUD Quest Task Requirement List component to list the quest task’s requirements.
You can use layout components to arrange the listed quest tasks. E.g. use a Vertical Layout Group component to arrange the quests in a vertical list. See Unity’s documentation on UI setup and layout groups for details on this.
The context menu in the scene hierarchy has quick setup command for creating a quest prefab with a quest task lists: ORK Framework > HUD > Quest > Quest with Task List (for prefabs)
The HUD Quest Task List component requires a quest as displayed content.
HUD Quest Task Requirement List #
Use a HUD Quest Task Requirement List component to add the requirements of a quest task. You can limit the displayed requirements by their type (finished tasks, items, enemy kills and counts).
The component creates a quest task requirement using a defined prefab. The prefab requires a HUD Content Provider component at it’s root. The HUD Quest Task Requirement List component sets the content provider’s user (content) as the individual quest task requirement. The content provider further distributes the information to any content component on it. The prefab can use a HUD Quest Task Requirement Text Content component to display the quest task requirement’s content information. Use an ORK HUD Value Bar Content or ORK HUD Icon Bar Content component to display the task requirement’s count as a value bar (via Quest Task Requirement value type, see the HUD value bar content documentation for details).
You can use layout components to arrange the listed quest task requirements. E.g. use a Vertical Layout Group component to arrange the quests in a vertical list. See Unity’s documentation on UI setup and layout groups for details on this.
The context menu in the scene hierarchy has quick setup command for creating a quest task prefab with a quest task requirement lists: ORK Framework > HUD > Quest > Quest Task with Requirement List (for prefabs)
The HUD Quest Task Requirement List component requires a quest task as displayed content.
HUD Quest Text Content #
Use a HUD Quest Text Content component to display content information of a quest. You can limit the displayed quests by their state (inactive, active, finished and failed).
The context menu in the scene hierarchy has quick setup commands for creating a quest prefab: ORK Framework > HUD > Quest > Quest (for prefabs) (variants with and without listing quest tasks)
The HUD Quest Text Content component requires a quest as displayed content.
HUD Quest Task Text Content #
Use a HUD Quest Task Text Content component to display content information of a quest task. You can limit the displayed quest tasks by their state (inactive, active, finished and failed).
The context menu in the scene hierarchy has quick setup commands for creating a quest task prefab: ORK Framework > HUD > Quest > Quest Task (for prefabs) (variants with and without listing quest task requirements)
The HUD Quest Task Text Content component requires a quest task as displayed content.
HUD Quest Task Requirement Text Content #
Use a HUD Quest Task Requirement Text Content component to display content information of a quest task requirement. You can limit the displayed requirements by their type (finished tasks, items, enemy kills and counts).
The context menu in the scene hierarchy has quick setup command for creating a quest task requirement prefab: ORK Framework > HUD > Quest > Quest Task Requirement (for prefabs)
The HUD Quest Task Requirement Text Content component requires a quest task requirement as displayed content.