Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Rooster on July 09, 2012, 03:37:57 AM

Title: errors....
Post by: Rooster on July 09, 2012, 03:37:57 AM
just imported 2.0.9 into a new, clean, empty project, and immediately get these errors:

Assets/NGUI/Scripts/Interaction/UIButtonTween.cs(32,42): error CS0117: `Trigger' does not contain a definition for `OnClick'

Assets/NGUI/Scripts/Interaction/UIButtonPlayAnimation.cs(33,42): error CS0117: `Trigger' does not contain a definition for `OnClick'

Haven't put anything into the project yet except for NGUI.   Thanks.
Title: Re: errors....
Post by: joreldraw on July 09, 2012, 04:32:06 AM
I make a clean project and inport NGUI 2.09 and all work fine here. No errors.

Ensure you check all files when inport Ngui.
If not, check AnimationOrTween.cs . There is placed the Triggers.
Title: Re: errors....
Post by: ArenMook on July 09, 2012, 10:07:45 AM
Sounds like you have a class in your project called "Trigger". Rename it to something else.
Title: Re: errors....
Post by: gw1108 on June 19, 2014, 07:33:15 PM
I solved this problem by replacing Trigger with AnimationOrTween.Trigger . Kinda hacky.