Open links in new tab
  1. In Unity, you can programmatically set the scroll position of a ScrollView using its associated properties. Below are the steps to achieve this for both ScrollRect (UI-based) and IMGUI ScrollView.

    1. Using ScrollRect (UI-Based ScrollView)

    The ScrollRect component is commonly used in Unity's UI system. You can adjust its scroll position using the verticalNormalizedPosition or horizontalNormalizedPosition.

    Steps:

    • Access the ScrollRect component attached to your ScrollView.

    • Modify the normalized position values (range: 0 to 1).

    Example Code:

    using UnityEngine;
    using UnityEngine.UI;

    public class ScrollViewController : MonoBehaviour
    {
    public ScrollRect scrollRect;

    void Start()
    {
    // Set vertical scroll position to the top
    scrollRect.verticalNormalizedPosition = 1f;

    // Set horizontal scroll position to the middle
    scrollRect.horizontalNormalizedPosition = 0.5f;
    }
    }
    Copied!

    2. Using IMGUI ScrollView

    For IMGUI-based ScrollViews, you can directly manipulate the Vector2 variable that tracks the scroll position.

    Steps:

    Feedback
  2. How To Make a Scroll View in Unity (The ULTIMATE Guide!)

    Hey Unity Developers! 👋 This video will guide you step-by-step through the entire process of setting up and customizing a robust Scroll View, ensuring your game's UI is both functional and...

  3. Unity - Manual: ScrollView

    The following C# example creates a ScrollView with both horizontal and vertical scroll capabilities, that contains a title Label, and a number of Toggle elements:

  4. Unity UI Tutorial: Using Scroll Views and Grid Layouts

    Jul 28, 2017 · In this post, we’ll look at how you can use Unity 3D to create a scrolling window and a grid-based layout for UI elements. The goal is to create a window that the user can scroll up and down, …

  5. Unity Scroll View: Making a scrollable UI without code

    Aug 22, 2022 · Unity Scrollview UI game object can be used to make a scrollable UI within minutes without writing a single line of code. In this tutorial, we will try to understand the components in Unity …

  6. Scroll View - Unity

    Scroll view allows for vertical and horizontal scrolling of its contained views.

  7. Unity Scroll View: How to Create Scroll Menu in Unity

    In this unity 6 scroll view tutorial for beginners, I will show you a simple way to create a scrollable shop UI in Unity using unity scroll view.

  8. People also ask
  9. Unity UI Scroll View — How to Make It Work | Geek Culture - Medium

    May 30, 2022 · The following is an example of how I used it. Starting from a very tall content, an object parenting a mixed list of text and images, I created the Scroll View. Messy oversized text and images.

  10. Scroll View in Unity - 2021 Tutorial - YouTube

    If you've ever needed a scrollable container of items in your Unity game menus, keep watching! Confine any number of items to the limits of a container and mask the overflow.

  11. Unity ScrollView Script & Demo Video Tutorial - “TheAppGuruz”

    Feb 5, 2016 · Main objective of this blog post is to help you create scroll view in Unity3d. When something is too big to fit to screen, then ScrollView is the solution. Let’s imagine if you have player …

  12. Unity - Manual: ScrollView

    You can create a ScrollView with UI Builder, UXML, or C#. The following C# example creates a ScrollView with both horizontal and vertical scroll capabilities, that contains a title Label, and a …

    • Coursera
      https://www.coursera.org
      About our ads

      Learn Unity - Unity Tutorials Online Course

      SponsoredBuild your Career in Data Science, Web Development, Marketing & More. Flexible, Online Learning at Your Own Pace. Invest 2-3 Hours A Week & Advance Your Career

      Free 7-Day Trial · Learn On Any Device · 150+ University Partners · Online Certification

      72% of Coursera participants surveyed reported career benefits – HBR