Author Topic: Remove Duration from checkmark  (Read 2587 times)

Dedede

  • Guest
Remove Duration from checkmark
« on: May 18, 2012, 11:51:38 AM »
Hey guys,

I want to make a checkbox, where there is absolutely no delay, when touched.
I looked over every involved script, but I can't seem to find a duration variable.

When I play the scene, the checkmark sprites, get a Tween Color script attached, where the duration is set to 0.2.

Is there a way to set this pre defined value to 0?

Thank you.

Dedede

  • Guest
Re: Remove Duration from checkmark
« Reply #1 on: May 18, 2012, 12:00:50 PM »
Ok, nevermind, I found it.

For those who are interested:

in the UICheckbox.cs is a TweenColor.Begin function, where the 0.2f is set. I just declared a public variable, and set that instead, so I can manually change the duration for individual checkboxes.