0

Using NGUI I created a horizontal scrollview with NGUI's example code "UICenter on Child". This is working properly. I want to dynamically scale the center sprite to 120%. How can I accomplish this? I am new to Unity so please provide a complete syntax -- something I can copy and paste into my code. Thanks!

TheGrayVacuum
  • 703
  • 2
  • 7
  • 12

1 Answers1

0

Try default option:

Transform mainTransform;

void Start()
{
    mainTransform = transform;

    mainTransform.localScale = Vector3.one * 1.2f;
}
OnionFan
  • 479
  • 3
  • 10