Hello,
I am trying to instantiate an UI Image on the go and i want to access its rect transform properties i.e.
- Left
- Pos Y
- Right
- Height
I’ve got the object access at runtime and even i’ve casted its transform to recttransform by
RectTransform rt = (RectTransform)(GameObjectNew.transform);
Now i don’t know how to get the properties of recttransform to edit the above listed properties. I’ve checed unity’s documentation but no help. Please help me out on this.