Author Topic: Too many vertices?  (Read 17797 times)

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Too many vertices?
« on: May 10, 2017, 05:22:04 AM »
I got this error when I play unity and some of my game's land's blue hex icon increased.

I think this happen when blue hex icon's coverage area become over camera's range.

Why and how to fix this error?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Too many vertices?
« Reply #1 on: May 13, 2017, 12:13:43 PM »
That means you have way too many widgets in one panel. Check what you have underneath that panel, and why you have so many vertices. Perhaps you have a lot of labels with large amount of text, using effects such as outline?

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: Too many vertices?
« Reply #2 on: May 13, 2017, 04:41:41 PM »
That means you have way too many widgets in one panel. Check what you have underneath that panel, and why you have so many vertices. Perhaps you have a lot of labels with large amount of text, using effects such as outline?

Thanks,

but How to identify the panel that has vertices problem?

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: Too many vertices?
« Reply #3 on: May 13, 2017, 07:34:36 PM »
And how to fix this?

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: Too many vertices?
« Reply #4 on: May 13, 2017, 07:50:48 PM »
That means you have way too many widgets in one panel. Check what you have underneath that panel, and why you have so many vertices. Perhaps you have a lot of labels with large amount of text, using effects such as outline?

I don't know. There is no ngui ui objects when this error appear on unity console. There is only UnityGUI objects. And blue marker is also not ngui object. Here is info of blue marker.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Too many vertices?
« Reply #5 on: May 19, 2017, 04:45:09 AM »
Wait, you are not even using NGUI here? Why even ask on the NGUI support forum then? I can only tell you how something like this can happen in NGUI and how to fix it, but Unity's UI is outside this forum's support scope.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: Too many vertices?
« Reply #6 on: May 19, 2017, 08:50:39 AM »
Wait, you are not even using NGUI here? Why even ask on the NGUI support forum then? I can only tell you how something like this can happen in NGUI and how to fix it, but Unity's UI is outside this forum's support scope.
Of course I am using NGUI too in this game, and in this scene.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Too many vertices?
« Reply #7 on: May 25, 2017, 06:16:15 AM »
Well, in NGUI this error can happen if you have too many things in one panel. Remember, panels batch everything into one draw call, which means a hard limit of 65k vertices (less on the mac I believe). You basically need to split up whatever you have in there into separate panels in order to draw what you need.

Unity is finally going to be adding 32-bit indices support in a future version based on the latest hackweek project mentioned on twitter -- but until then you need to split up your geometry.

leegod

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 90
    • View Profile
Re: Too many vertices?
« Reply #8 on: May 25, 2017, 08:01:10 AM »
Here is attach of inspector image of that blue hex marker.

I don't understand well, how to start it? Split up?


Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Too many vertices?
« Reply #9 on: May 29, 2017, 03:11:32 AM »
As the hex tiles aren't using NGUI, the hex tiles aren't directly the problem. You need to look at your NGUI layout and see what has all the detail to find the problem.