fla-rar
September 11, 2017, 5:35pm
1
hi …
how can I use
yield return new WaitForSeconds(1);
but only half second
i mean … 0.5 of a second
this is my code but is not working
thansk for any help i will apreciate so much
IEnumerator Void_imgRAW_SHOW()
{
yield return new WaitForSeconds(0.5);
imgRAW_SHOW.active = true;
}
Basen1
September 11, 2017, 5:37pm
2
yield return new WaitForSeconds(0.5f);
8 Likes
When using Ienumorators you must call the function by a coroutine
StartCoroutine (functionname ());
3 Likes
@Basen1 is correct for how to use a 1/2 second (or any fraction).
The default value type of a decimal number is ‘double’. You add the suffix to indicate that it’s a ‘float’ type (which is what the argument expects)
3 Likes
fla-rar
September 12, 2017, 1:01am
5
thnaks you !!!
i am going from .js to .cs
thanks a lot !!!
1 Like
Cool, glad ya got it fixed