Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

set width of rect transform unity

rectTransform.sizeDelta = new Vector2(50, 50);
Comment

how to change rect transform width or height from unity

How Can I modify the width and height of RectTransform ?

RectTransform rt = gameObjectName.GetComponent (typeof (RectTransform)) as RectTransform;
rt.sizeDelta = new Vector2 (100, 100);
Comment

PREVIOUS NEXT
Code Example
Csharp :: check if process is open c# 
Csharp :: blazor get current url 
Csharp :: c sharp list of strings 
Csharp :: c# format string to date yyyymmdd 
Csharp :: how to make something addforce in the direction of something in untiy 
Csharp :: c# list to string 
Csharp :: c# get full URL of page 
Csharp :: get application path c# 
Csharp :: c# foreach enum 
Csharp :: Linq - Random Elements 
Csharp :: get program path c# 
Csharp :: format phone number in c# .net 
Csharp :: decode base64 string c# 
Csharp :: c# if debug 
Csharp :: sconvert string to title case + C3 
Csharp :: c# get bytes from string 
Csharp :: c# empty IEnumerable 
Csharp :: create asset menu unity 
Csharp :: unity lookrotation lerp 
Csharp :: c# get first 5 characters of string 
Csharp :: ienumerator 
Csharp :: windows form textbox numbers only 
Csharp :: even number checker in c# 
Csharp :: website link in unity 
Csharp :: c# fontweight in code 
Csharp :: c# determine configration at runtime 
Csharp :: load prefab in script unity 
Csharp :: convert request.form to dictionary c# 
Csharp :: c# declare inline string array 
Csharp :: stop sound in unity 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =