How I Get Material Button Width and Height

0 votes
asked Jul 28, 2016 in Help by erkanceylan (150 points)
On my application, i instantiate a few material button, and i want to get width and heigth of instance. I can't find any answer, pleaase help me.

1 Answer

0 votes
answered Aug 2, 2016 by admin (31,720 points)
selected Aug 22, 2016 by admin
 
Best answer
Hi there,

You can access the button's .rectTransform, and use .rect.width and .rect.height.

~ Declan.
Welcome to MaterialUI support! Ask us anything :)
...