Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Setting top and bottom on a RectTransform

$
0
0
Hi,

I'd like to set the top and bottom on a rectatransform belonging to a prefab I'm instantiating...

So..

I instantiate the object and set the rect i.e.

rectTransform.rect.set(top,left,width,height);

However the instantiated objects top is not the value I've set!

Any ideas?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>