I’m dynamically populating a scroll rect with contacts from the phone. Each contact is it’s own button. However once I add text I get a “Canvas element contains more than 65535 vertices. This is not supported”.
Is there a way around this - or does anyone have a work around? I’m not seeing a whole lot of topics out there dealing with this issue.
How many contacts are there? You shouldn’t be spawning hundreds of buttons into the scene. Instead, you could use object pooling for this. You probably have a list with all of your contacts. Instead of spawning a button for each entry, you only instantiate say 10 or whatever fits on the screen, now you reuse those 10 buttons to wrap around the scroll rect and change their content when they come into view.
But if you’re only instantiating a dozen buttons, there shouldn’t be a problem, so there might be something else broken.
Try deactivating specific UI elements and it will not appear.
I have a 20 slots of upgradable weapon, that error appear when in the 10 slots,
so what I do if its not on the screen (because its scrollable) i deactivate it. and activate it when its on the screen area. ( gameObject.setActive(true) )