Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: joduffy on December 08, 2012, 08:30:45 PM
-
Hi Guys,
I think this could be a bug. But when I create a popup list or menu it spawns as an empty gameobject.
I can go and add all the components manually but just wanted to know if anyone else had this problem and if there is a way to fix it.
-
Don't forget to specify the sprites before hitting the Add To button.
-
Thanks for your reply.
I do add and specify all the sprites.
Here is a screenshot to show you what I am doing.
https://www.dropbox.com/s/i09qqgu0e4zcn31/NGUI_popuplist_error.png
(https://www.dropbox.com/s/i09qqgu0e4zcn31/NGUI_popuplist_error.png)
(http://)
I circled the areas so you could see.
The popup list is just blank. The same thing happens for popup menu.
I created a popup list manually. I could try re-importing everything in but no luck. Still the same issue
-
Select your UIRoot and hit Alt+Shift+P to make it all pixel-perfect. I see some of your stuff is skewed -- something you shouldn't do. Other than that it should be fine -- certainly never had it cause issues for me in the past (unless I forgot to specify sprites). What version of Unity + NGUI do you use?
-
Sorry for the slow reply. I got stuck in work for a few days.
I had latest version 3.x of Unity3d.
I just upgraded today to Unity4 as I bought NData plugin for NGUI.
The errors I am now receiving are:
Assets/NGUI/Scripts/Editor/BMFontReader.cs(47,34): error CS0433: The imported type `BMFont' is defined multiple times
Assets/NGUI/Scripts/Editor/NGUISettings.cs(20,16): error CS0433: The imported type `UIWidget' is defined multiple times
So I cant tell you more about the previous error till this goes away. I tried importing again from the Asset store and doing a reimport all in unity editor.
With the pop list and menu. It is a strange error and I used NGUI for a contract I done with a Company and was impressed with it so I bought it for my Indie work. I just found it strange that the pop list and menu is just blank for me.
Thanks for pointing out the screw.The interface is a rough layout till the artist in our group creates the necessary photoshop files.
-
The only thing I can think of that could cause any Issues with NGUI is that I purchased a packaged called
Tower Defense Toolkit(TDTK)
It says it supports NGUI and I am looking to see if it brought in the free version of NGUI anywhere.
I am doing the same for NData and NGUI HUD Text.
I can see the have an NGUI folder that contains DLL files and editor.
Should I delete these folders?
-
I was able to fix all my problems by deleting the NGUI folder in NGUI HUD TEXT and NGUI folder in TDTK.
I imported in NGUI again to fix any of the missing references.
I am now also able to create NGUI popup list and menus.
Woo
Now the only error I get is this:
This error pops up after I press play and hit stop.
UnassignedReferenceException: The variable mRen of 'UIDrawCall' has not been assigned.
You probably need to assign the mRen variable of the UIDrawCall script in the inspector.
UIDrawCall.UpdateMaterials () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:207)
UIDrawCall.OnWillRenderObject () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:302)
UnityEditor.DockArea:OnGUI()
-
NData addon was created by another company so I can't comment on that. As for the error -- that's a strange one, and I've never seen it. Have you tried restarting Unity?
-
Yep.
That fixed it.
Restarting Unity removed the errors.
I think it was caused from the free versions of NGUI being imported before.
Thanks for you help. I really appreciate it.