Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: doncarlos91 on January 16, 2017, 05:20:05 AM

Title: UIButton onclick delay issue
Post by: doncarlos91 on January 16, 2017, 05:20:05 AM
Hi Guys,

i have a some problem with my button onclick method (maybe)

#1 In Unity Editor , when im attaching the pressedSprite to UIbutton -  touch effect works perfect, but when i`m trying to set the tween colour to pressed state of button , and when i`m running it to my Android device , the pressed view touch effect appears after 1 second approximately

 here is my screenshot with my button settings

Any Suggestions? (https://n3plcpnl0044.prod.ams3.secureserver.net:2083/cpsess6474382537/frontend/gl_paper_lantern/filemanager/showfile.html?file=screen.png&fileop=&dir=%2Fhome%2Fasata%2Fpublic_html&dirop=&charset=&file_charset=&baseurl=&basedir=)
Title: Re: UIButton onclick delay issue
Post by: doncarlos91 on January 16, 2017, 07:01:15 AM
Hi Guys,

i have a some problem with my button onclick method (maybe)

#1 In Unity Editor , when im attaching the pressedSprite to UIbutton -  touch effect works perfect, but when i`m trying to set the tween colour to pressed state of button , and when i`m running it to my Android device , the pressed view touch effect appears after 1 second approximately

Any Suggestions?
Title: Re: UIButton onclick delay issue
Post by: ArenMook on January 18, 2017, 09:09:10 AM
Button script adds a tween to the sprite. You can't tween the same sprite's color that's affected by the button. Either color a different sprite, or don't use the button script.
Title: Re: UIButton onclick delay issue
Post by: doncarlos91 on January 20, 2017, 04:17:32 AM
Hi Aren , thanks for you reply, i have fixed that issue by setting the transition = 0 and it solved my visual effect problem :)