Author Topic: Chatlog too many vertices  (Read 2264 times)

loop

  • Guest
Chatlog too many vertices
« on: June 11, 2013, 03:00:47 AM »
Hello!
I'm working on a chat log with a scrollbar. For this i use a UIDraggablePanel and a UITable. This table contains the log labels. Everything works perfect. But the problem is that sometimes i get an "too many vertices" error. My first thought was to hide the labels using collider, but the trigger event of the collider does not fire in game view. This only works when you go into the scenes view, then the onTrigger event fires.

Is there any technic in order to deactivate/activate the visible/invisible labels?

Thanks for helping me out!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Chatlog too many vertices
« Reply #1 on: June 11, 2013, 03:59:12 PM »
Shadow effect double the number of vertices.

Outline effect increases the number of vertices 5 times.

You have to write your own logic to hide labels -- but it's better to simply recycle them instead (remove them from the chat). Starlink UI kit comes with a chat example that while not scrollable, does make the labels fade out smoothly, and keeps a limited history.