Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to change the width of a panel unity

// To Change the "Scale" property use localScale, like this
// Change the numbers in the "()" to your choosen scale
public GameObject YourPanel;
YourPanel.GetComponent<RectTransform>().localScale = new Vector3(newWidthUI, newHeightUI, 1);

// If you want to change it in pixels
public GameObject yourUI;
yourUI.GetComponent<RectTransform>().sizeDelta = new Vector2(newWidthUI,newHeightUI);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get regedit value 
Csharp :: get selected rows gridcontrol devexpress 
Csharp :: do loop c# 
Csharp :: .Net 6 Program.cs 
Csharp :: c# lerp 
Csharp :: hva er bukser på amerikansk 
Csharp :: c# web page show 2nd page of tiff on an image control 
Csharp :: xamarin 12 hrs time format tt 
Csharp :: a infinite loop in text box update ui c# 
Csharp :: C# program to find the longest Palindrome in a string. 
Html :: html dollar symbol 
Html :: ssss 
Html :: how to change a favicon in html 
Html :: accept only image input file 
Html :: how to stop download option in video tag of HTML 
Html :: include script in html 
Html :: html open link in new tab 
Html :: html video autoplay IPHONE 
Html :: a href mail 
Html :: bsc chain rpc 
Html :: gender selection in html 
Html :: css display only on mobile 
Html :: css textarea limit 
Html :: bootstrap navbar dropdown right 
Html :: download ebook free 
Html :: html insert pdf 
Html :: html links 
Html :: *ngFor index 
Html :: fa fa-home 
Html :: mailto:// 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =