UIScrollView.GetComponent is a method in C# language used for accessing a component in a scrollview. It is commonly used in Unity game engines for creating a scrolling interface.
Example 1: Accessing a scrollview component in Unity
In this example, we are accessing the scrollview component using GetComponent method. We are then setting the movementType property of the ScrollRect component to Clamped.
Package library: Unity Engine
Example 2: Changing scroll sensitivity of a scrollview in Unity
In this example, we are again accessing the scrollview component using GetComponent method. We are then setting the scrollSensitivity property of the ScrollRect component to 10f.
Package library: Unity Engine
C# (CSharp) UIScrollView.GetComponent - 33 examples found. These are the top rated real world C# (CSharp) examples of UIScrollView.GetComponent from package TheUnseen extracted from open source projects. You can rate examples to help us improve the quality of examples.