Page 1 of 1

Quest Tracker - Expand Downwards?

Posted: Sun Nov 13, 2022 10:29 pm
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 373 times
Thank you!

Re: Quest Tracker - Expand Downwards?

Posted: Mon Nov 14, 2022 9:39 am
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.

Re: Quest Tracker - Expand Downwards?

Posted: Mon Nov 14, 2022 5:03 pm
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

Re: Quest Tracker - Expand Downwards?

Posted: Mon Nov 14, 2022 8:04 pm
by Tony Li
Glad I could help!