Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to resize 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 :: web scraping dynamic content c# 
Csharp :: how to make a enemy in unity 
Csharp :: c# code process to start any exe application 
Csharp :: Task w = Task.Delay(600);w.Wait();new Program().Start(); 
Csharp :: function on program stops unity 
Csharp :: how do i repeat a button on visual studio code 
Csharp :: Responsive Bootstrap 4 Admin Dashboard icon cdn 
Csharp :: use different database with entitymanagerfactory 
Csharp :: como guardar archivo en un botón asp.net 
Csharp :: Dominosteine c# 
Html :: html euro symbol 
Html :: bootstrap col center content 
Html :: htmjl favicons 
Html :: accept only image files upload html 
Html :: fa link 
Html :: how to remove download option from video tag in html 
Html :: html long text three dots 
Html :: lien dans un nouvel onglet html 
Html :: html img size 
Html :: What is the RPC URL for Binance smart chain? 
Html :: submit form on change 
Html :: html how to display something on mobile and another on desktop 
Html :: open the file upload dialogue box onclick the image 
Html :: link javascript to html 
Html :: free ebooks 
Html :: href phone 
Html :: add link to text html 
Html :: chrome clear cache for one site 
Html :: fa-fa-home 
Html :: body on start do function javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =