1
NGUI 3 Support / How to set NGUI delay property via code
« on: January 01, 2017, 03:45:33 PM »
I'm trying to set the delay property of the TweenScale component in my code.
Just wondering how I can accomplish this?
Here's what I have tried so far:
float myDelay = 1.0f;
public void setDelay () {
gameObject.GetComponent<TweenScale>.delay() = myDelay;
}
I found this thread where it is mentioned that delay is a property:
http://www.tasharen.com/forum/index.php?topic=2231.0
note: I'm new so exact syntax is always a big help to me
Just wondering how I can accomplish this?
Here's what I have tried so far:
float myDelay = 1.0f;
public void setDelay () {
gameObject.GetComponent<TweenScale>.delay() = myDelay;
}
I found this thread where it is mentioned that delay is a property:
http://www.tasharen.com/forum/index.php?topic=2231.0
note: I'm new so exact syntax is always a big help to me
