Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity scroll rect to bottom

using UnityEngine;
using UnityEngine.UI;
public static class ScrollRectExtensions
{
    public static void ScrollToTop(this ScrollRect scrollRect)
    {
        scrollRect.normalizedPosition = new Vector2(0, 1);
    }
    public static void ScrollToBottom(this ScrollRect scrollRect)
    {
        scrollRect.normalizedPosition = new Vector2(0, 0);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity list get item at index 
Csharp :: new datetime c# 
Csharp :: migrationbuilder insert data example 
Csharp :: declare enum c# 
Csharp :: c# const vs readonly 
Csharp :: c# sum object values 
Csharp :: listview imagelist c# 
Csharp :: mysqldump - date 
Csharp :: add list to list c# 
Csharp :: c# obsolete class 
Csharp :: add qtwidgets to cmake file 
Csharp :: finding keys in the registry 
Csharp :: c# destroy function...unity 
Csharp :: dxf read c# 
Csharp :: convert string to decimal c# 
Csharp :: string interpolation in c# 
Csharp :: for statement syntax C sharp 
Csharp :: serenity frameword order column 
Csharp :: asp net saber ip address of client machine IIS 
Csharp :: itext7 pdfwriter outputstream c# 
Csharp :: wpf textbox insert text at caret position 
Csharp :: display array elemetns to text box c# 
Csharp :: redis cache repository .net 
Csharp :: c# selenium xunit testing 
Csharp :: Send Hotmail, Outlook, Office365 Email using SMTP C# .NET 
Csharp :: structure in c sharp with example 
Csharp :: get current location latitude and longitude in xamarin - NAYCode.com 
Csharp :: c# guid from string 
Csharp :: c# listview add items horizontally 
Csharp :: How to get selected item from Dropdown in GridView 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =