Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: kababyenoh on September 23, 2012, 10:45:06 PM
-
Hi all,
I ran into this interesting little problem whenever I attempt to delete an instanced object in a prefab (See image below, Unity crashes on me)
http://i1109.photobucket.com/albums/h426/kababyenoh/Example01_zps926921cf.jpg (http://i1109.photobucket.com/albums/h426/kababyenoh/Example01_zps926921cf.jpg)
It appears that I may have accidentally instanced the objects and established connections between them by the looks of it.
Is there a way to break the connections or must I create a new prefab from scratch to fix it?
Thanks
-
Where is the image?
-
I've linked the image, can you see it?
-
No , i don“t see the image.
Reattach please
-
Used hyperlink this time.
Now?
-
Yes now i see the link , but the image is a black background with a withe pixel point in the center....
-
Tried it again.
http://i1109.photobucket.com/albums/h426/kababyenoh/Example01_Redone_zpsd7d7cdac.jpg (http://i1109.photobucket.com/albums/h426/kababyenoh/Example01_Redone_zpsd7d7cdac.jpg)
-
Your image is only 1 white pixel. Please check first , use attahcements options on the post repply to upload here.
-
Thank You.
How about now?
-
What are you instancing?
Can you show your instancing code?
-
I have some screencaps from monoscript and Unity console here.
Says that I may have instanced something? What the heck ==
-
You are calling a label that is null.
use Getcomponent<UILabel>() to get the label object.
-
Alright, will give it a try.
Thank You!
-
Actually, I would like to stop the prefab from crashing. I'm guessing if it is the label that is causing the issue, is there a way to have it not call said object?
I'm no scripter, I just happened to run into this by mistake.
-
Comment the line 20;
labelAreaName.text.....
//labelAreaName.text...
If you are not coder is hard to do, because you need to know if have more reference for this label and why you need this or not.
I think is a log label to show your server and port conection or something similar.
-
Alright, I'll have a coder buddy root around and see, if not worst comes to worst I'll just make the prefab from scratch.
Thanks~