Quest Tracker - Expand Downwards?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DrewThomasArt
Posts: 60
Joined: Thu Mar 24, 2022 12:07 am

Quest Tracker - Expand Downwards?

Post by DrewThomasArt »

As my player acquires quests, the quest tracker UI expands from both the top and the bottom, and because mine is in the upper right corner, it goes off of the screen.
Is there a way to make it so the tracker only expands downwards?
Additionally, is there a way to make it so the Quest Tracker isn't always showing in front of everything? Because it is a prefab that's on the Dialogue Manager that is also a prefab, there doesn't seem to be a way to affect its layering in the hierarchy.
Screenshot (43).png
Screenshot (43).png (452.33 KiB) Viewed 375 times
Thank you!
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Tracker - Expand Downwards?

Post by Tony Li »

Hi,
DrewThomasArt wrote: Sun Nov 13, 2022 10:29 pmAs my player acquires quests, the quest tracker UI expands from both the top and the bottom, and because mine is in the upper right corner, it goes off of the screen.
Is there a way to make it so the tracker only expands downwards?
Inspect the Vertical Group child GameObject's Rect Transform component. Set Pivot > Y to 1 and Pos Y to 0.
DrewThomasArt wrote: Sun Nov 13, 2022 10:29 pmAdditionally, is there a way to make it so the Quest Tracker isn't always showing in front of everything? Because it is a prefab that's on the Dialogue Manager that is also a prefab, there doesn't seem to be a way to affect its layering in the hierarchy.
You can add another Canvas GameObject to your Dialogue Manager. I recommend calling it "DialogueCanvas" and setting its Canvas component's Sort Order to a value higher than the original Canvas. Then assign DialogueCanvas to the Dialogue Manager's Display Settings > Default Canvas field.

Alternatively, you can create another canvas and assign it to the Instantiate Prefabs component.
DrewThomasArt
Posts: 60
Joined: Thu Mar 24, 2022 12:07 am

Re: Quest Tracker - Expand Downwards?

Post by DrewThomasArt »

Tony Li wrote: Mon Nov 14, 2022 9:39 am Hi,
DrewThomasArt wrote: Sun Nov 13, 2022 10:29 pmAs my player acquires quests, the quest tracker UI expands from both the top and the bottom, and because mine is in the upper right corner, it goes off of the screen.
Is there a way to make it so the tracker only expands downwards?
Inspect the Vertical Group child GameObject's Rect Transform component. Set Pivot > Y to 1 and Pos Y to 0.
DrewThomasArt wrote: Sun Nov 13, 2022 10:29 pmAdditionally, is there a way to make it so the Quest Tracker isn't always showing in front of everything? Because it is a prefab that's on the Dialogue Manager that is also a prefab, there doesn't seem to be a way to affect its layering in the hierarchy.
You can add another Canvas GameObject to your Dialogue Manager. I recommend calling it "DialogueCanvas" and setting its Canvas component's Sort Order to a value higher than the original Canvas. Then assign DialogueCanvas to the Dialogue Manager's Display Settings > Default Canvas field.

Alternatively, you can create another canvas and assign it to the Instantiate Prefabs component.
Thank you, I got it to work marvelously because of this
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest Tracker - Expand Downwards?

Post by Tony Li »

Glad I could help!
Post Reply