Page 1 of 1

How to reset the scroll to the first Object in the "Content" child?

Posted: Sun Jun 19, 2022 9:35 pm
by Recktardeded
Is there any way i could reset the scroll snap to the first object from the "Content" Child. I need this for menu navigation, so when i enter again the scroll view menu i always see the first object (From the "content" child)

Re: How to reset the scroll to the first Object in the "Content" child?

Posted: Mon Jun 20, 2022 9:20 am
by Joel
Hi there,

This is a question regarding Unity UI rather than Easy Save, so I'm afraid I can't provide assistance. I recommend asking on the Unity Forums as they should be able to point you in the right direction for general Unity questions.

All the best,
Joel

Re: How to reset the scroll to the first Object in the "Content" child?

Posted: Mon Jun 20, 2022 10:26 am
by Recktardeded
Hello, i was wondering if i could use something like this:
public void BackToMainPanel()
{
snap.SelectedPanel = 0;
mainPanel.SetActive(true);
}
(this code doesn t work like this because i get the error CS0272)

Re: How to reset the scroll to the first Object in the "Content" child?

Posted: Mon Jun 20, 2022 10:49 am
by Joel
Hi there,

Unfortunately as this isn't an Easy Save question you would need to ask this question on the Unity forums.

All the best,
Joe l

Re: How to reset the scroll to the first Object in the "Content" child?

Posted: Mon Jun 20, 2022 11:42 am
by Recktardeded
Thanks Anyway, have a good day!