Adding label in a Factory-ed object (buffer full)

Hello,
In my game, I have an Object, with collision, sprites (two of them) and script. That object put a star on the world.
To do that, I use a factory, with this object as value. The result is a screen with lot of instancied stars of various colors.

My problem : I wanted to add a label under the star (for its name). I then added a Label component in the Object. And the game give me the dreaded error “the buffer is full”.

I remember I had the same problem for something else (probably the sprites of the same object), and I had the answer here, but I can’t find it (apparently, it’s not in my History).

Then I’m allowing myself to ask again : How do I can add a label component in an object used for a factory without having the “buffer full” error ?

And no, I remember I didn’t have to change the “max” stat. I just can’t remember or find what I did to make it work when the sprites had the same problem

Edit : Spelling

The only solutions are:

  • Reduce the number of labels being spawned
  • Increase the max label count in game.project

Apparently, that was what I did, since I see 1024 as Max Count for the sprites. I was pretty sure I didn’t.
Thanks for your answer, I will do that for labels, too, then

It’s working.

1 Like