How do I scale the dynamically created buttons in unity3d from script?

I am creating buttons dynamically but by default it is scaling to

large values, I want to scale them as 1,1,1 when the buttons are created runtime. Can anyone tell me the c# script I need to use to make this happen? Thanks.

GetComponent().localScale = new Vector3(1,1,1);