Horje
how to resize a panel unity Code Example
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);




Csharp

Related
turtle graphics face in direction Code Example turtle graphics face in direction Code Example
new material unity Code Example new material unity Code Example
c# even or odd Code Example c# even or odd Code Example
unity respawn c# Code Example unity respawn c# Code Example
how to change the width of a panel unity Code Example how to change the width of a panel unity Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9