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

Discussion and help for Easy Save 3
Post Reply
Recktardeded
Posts: 21
Joined: Sun Jun 12, 2022 8:30 am

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

Post 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)
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

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

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Recktardeded
Posts: 21
Joined: Sun Jun 12, 2022 8:30 am

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

Post 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)
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

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

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Recktardeded
Posts: 21
Joined: Sun Jun 12, 2022 8:30 am

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

Post by Recktardeded »

Thanks Anyway, have a good day!
Post Reply