Page 1 of 1

[SOLVED] Quest Journal not showing anything

Posted: Sat Dec 12, 2020 5:53 pm
by mschoenhals
Hi,
My quest machine journal was showing quests beyond the scrollable viewport. While trying to fix that, I've somehow changed something so that no quests show up on the journal now. In my Quest Machine Configuration, it still shows Quest Journal UI for the field Quest Journal UI. What else should I check to ensure the journal get's updated?

I believe my initial issue of scrolling was related to the Mask being turned off on the Scroll Rect but now I have no way of confirming that because Quests no long show up.

Thank you for your help in advance.

Re: [HELP] Quest Journal not showing anything

Posted: Sat Dec 12, 2020 6:29 pm
by mschoenhals
Ok, the quest data came back if I turned the Mask off on the Scroll Rect. So now my issue is, when enough quests are logged, it shows the list beyond the Scroll Rect. The scroll bar still works, but it just moves the list up and down beyond the Scroll Rect of the journal window.

Re: [HELP] Quest Journal not showing anything

Posted: Sat Dec 12, 2020 7:18 pm
by Tony Li
Hi,

If you play in the editor and open the quest journal UI, does Quest Machine put UI content inside the quest journal UI? (For example, in the Hierarchy under Quest Journal UI > Main Panel > Quest Selection Panel > Scroll Rect > Quest Selection Scroll Rect Content.)

If it's putting content inside Quest Selection Scroll Rect Content, then it's some sort of masking issue or rect transform issue.

If it's not putting content inside Quest Selection Scroll Rect Content, then the quest journal UI isn't getting the message to refresh/repaint itself.

Re: [HELP] Quest Journal not showing anything

Posted: Sat Dec 12, 2020 7:34 pm
by mschoenhals
Yes, Quest Machine is putting UI content inside of the quest journal UI. When I test the game and hit pause, I can see the updated journal info in the Scroll Rect Content area.

Re: [HELP] Quest Journal not showing anything

Posted: Sat Dec 12, 2020 7:39 pm
by Tony Li
The scroll rect should have a Mask component that is enabled. Temporarily tick Show Mask Graphic to check the size and position of the masked area (i.e., the area of the Scroll Content that will be visible).

During play, open the quest journal. Try to identify what's prevent the content from being visible. Maybe the Scroll Content is being sized wrong. Check its Rect Transform > Height. This will typically be set automatically by the Vertical Layout Group and Content Size Fitter.

If you get stuck, please feel free to send a reproduction project to tony (at) pixelcrushers.com with instructions on how to reproduce the issue.

Re: [HELP] Quest Journal not showing anything

Posted: Sun Dec 13, 2020 10:06 am
by mschoenhals
Ok, I have sent you the email with the repro link.
Thank you.

Re: [HELP] Quest Journal not showing anything

Posted: Sun Dec 13, 2020 10:26 am
by Tony Li
Hi Mike,

Thanks! I'm downloading it now. I'll reply back by the end of the day.

Re: [HELP] Quest Journal not showing anything

Posted: Sun Dec 13, 2020 7:00 pm
by Tony Li
Hi Mike,

The mask image's alpha value was zero (transparent), which makes the masked content invisible. Set the alpha value to 255:

maskAlpha.png
maskAlpha.png (72.94 KiB) Viewed 1008 times

Re: [SOLVED] Quest Journal not showing anything

Posted: Sun Dec 13, 2020 10:20 pm
by mschoenhals
Thanks Tony! It's working great. Much appreciated.

Re: [SOLVED] Quest Journal not showing anything

Posted: Mon Dec 14, 2020 8:19 am
by Tony Li
Happy to help!