Welcome,
Guest
. Please
login
or
register
.
September 29, 2023, 11:32:13 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton On Click Notify clears on Prefab?
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIButton On Click Notify clears on Prefab? (Read 2038 times)
stevej
Full Member
Thank You
-Given: 1
-Receive: 0
Posts: 117
UIButton On Click Notify clears on Prefab?
«
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?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIButton On Click Notify clears on Prefab?
«
Reply #1 on:
March 30, 2014, 07:36:29 AM »
Prefabs can't keep references to anything outside of the prefab.
Logged
stevej
Full Member
Thank You
-Given: 1
-Receive: 0
Posts: 117
Re: UIButton On Click Notify clears on Prefab?
«
Reply #2 on:
March 30, 2014, 06:20:58 PM »
Quote from: ArenMook on March 30, 2014, 07:36:29 AM
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
Logged
pretender
Full Member
Thank You
-Given: 1
-Receive: 0
Posts: 155
Re: UIButton On Click Notify clears on Prefab?
«
Reply #3 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
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton On Click Notify clears on Prefab?