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!
Asked
Active
Viewed 552 times
1 Answers
0
Try default option:
Transform mainTransform;
void Start()
{
mainTransform = transform;
mainTransform.localScale = Vector3.one * 1.2f;
}

OnionFan
- 479
- 3
- 10