how to locally change the rotation of an object by script c# unity code example
Example 1: unity how to change text in script
Text myText = GameObject.Find("Canvas/Text").GetComponent<Text>();
myText.text = "Your text changed!";
Example 2: how to change the size of ui in script unity
_image.rectTransform.sizeDelta = new Vector2(width, height);