Journal UI Detail Scroll On Top
Posted: Tue Apr 13, 2021 7:32 pm
Hey Tony, when I open a quest/ expand on the Journal to see its details for the first time, the details scroll starts at the top like it should, but if I close the Journal UI and reopen it, the details scroll rect will jump to its bottom, how can I make sure it reopens in the top?
I tried calling this code on journal OnOpen() but it still behaves the same way, I guess something overrides the code?
I tried calling this code on journal OnOpen() but it still behaves the same way, I guess something overrides the code?
Code: Select all
{
Scrollbar scrollBar;
void Awake()
{
scrollBar = this.gameObject.GetComponent<Scrollbar>();
}
public void ScrollTop()
{
scrollBar.value = 1;
}
}