How to reset the scroll to the first Object in the "Content" child?
-
- Posts: 21
- Joined: Sun Jun 12, 2022 8:30 am
How to reset the scroll to the first Object in the "Content" child?
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?
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
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
-
- Posts: 21
- Joined: Sun Jun 12, 2022 8:30 am
Re: How to reset the scroll to the first Object in the "Content" child?
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)
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?
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
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
-
- Posts: 21
- Joined: Sun Jun 12, 2022 8:30 am
Re: How to reset the scroll to the first Object in the "Content" child?
Thanks Anyway, have a good day!