Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: EmilEkdahl on July 31, 2014, 11:34:51 AM

Title: OnFinished removed after LoadLevel
Post by: EmilEkdahl on July 31, 2014, 11:34:51 AM
Greetings.

I have a slight issue with the UI Play Tween.
The OnFinished Script gets removed after a LevelLoad, for instance between Start Menu and Game, back to start.

As can be seen in the attached image,
they are from the exact same object, one is on Initial Start Menu (The way it should be.) and the other is after going to the Game Level and back to Start Menu.

Is it supposed to be this way?
Am i doing something wrong?

Unity 4.5.2f1
NGUI 3.6.8
Title: Re: OnFinished removed after LoadLevel
Post by: ArenMook on July 31, 2014, 12:28:10 PM
What do you mean by "same exact object"? References like that can only be kept if they are on the same prefab. Referencing anything outside the prefab won't work.
Title: Re: OnFinished removed after LoadLevel
Post by: EmilEkdahl on July 31, 2014, 12:44:02 PM
Oh, wow, I totally didn't know that.

That is it, i will have to rework that part.
It's a static object, but it's not in the Game-Object prefab, it's just dragged there in the Scene.