Author Topic: Popup list is just an empty gameobject - BUG  (Read 5154 times)

joduffy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Popup list is just an empty gameobject - BUG
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #1 on: December 08, 2012, 11:46:56 PM »
Don't forget to specify the sprites before hitting the Add To button.

joduffy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #2 on: December 09, 2012, 12:30:39 AM »
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




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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #3 on: December 09, 2012, 11:13:19 AM »
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?

joduffy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #4 on: December 14, 2012, 03:53:07 AM »
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.

joduffy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #5 on: December 14, 2012, 04:08:41 AM »
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?

joduffy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #6 on: December 14, 2012, 04:35:53 AM »
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()

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #7 on: December 14, 2012, 07:24:22 AM »
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?

joduffy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Popup list is just an empty gameobject - BUG
« Reply #8 on: December 14, 2012, 09:31:07 AM »
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.