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!
Try default option:
Transform mainTransform;
void Start()
{
mainTransform = transform;
mainTransform.localScale = Vector3.one * 1.2f;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.