Tanoda
ScrollRectExtensions.cs
Go to the documentation of this file.
1
3
4
namespace
UnityEngine.UI.Extensions
5
{
6
public
static
class
ScrollRectExtensions
7
{
8
public
static
void
ScrollToTop(
this
ScrollRect scrollRect)
9
{
10
scrollRect.normalizedPosition =
new
Vector2
(0, 1);
11
}
12
public
static
void
ScrollToBottom(
this
ScrollRect scrollRect)
13
{
14
scrollRect.normalizedPosition =
new
Vector2
(0, 0);
15
}
16
}
17
}
Leap.Unity.Recording.SerializedArgumentType.Vector2
@ Vector2
UnityEngine.UI.Extensions
Credit Erdener Gonenc - @PixelEnvision.
Definition:
AccordionElementEditor.cs:8
Source
Assets
unity-ui-extensions
Runtime
Scripts
Utilities
ScrollRectExtensions.cs
Generated by
1.9.3