Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: stevej on March 30, 2014, 03:58:52 AM

Title: UIButton On Click Notify clears on Prefab?
Post by: stevej on March 30, 2014, 03:58:52 AM
Noticed that if you prefab a part of the UI which has UIButtons with the "On Click Notify" filled in (i.e. a MonoBehaviour), that link gets severed when you instantiate that part of the UI back in.

Is that a bug or just an unfortunate side effect?
Title: Re: UIButton On Click Notify clears on Prefab?
Post by: ArenMook on March 30, 2014, 07:36:29 AM
Prefabs can't keep references to anything outside of the prefab.
Title: Re: UIButton On Click Notify clears on Prefab?
Post by: stevej on March 30, 2014, 06:20:58 PM
Prefabs can't keep references to anything outside of the prefab.

Yeah, it makes total sense I guess, but it's a pain. Oh well, already working around it so it's all good :)
Title: Re: UIButton On Click Notify clears on Prefab?
Post by: pretender on March 31, 2014, 04:37:32 AM
It does keep reference to reference atlas or font in the prefab even reference atlas or font is not in the same prefab