I am adding a dozen or so sprites using the same texture at different positions on screen. Simple stuff. Very occasionally, like, 1 in 100, one of the sprite will not appear. What can be causing it? Something uninitialised in the cocos sprite?
Yes, it returns a node. The thing is that it works 99% of the time. It worked 100% of the time on older cocos - game is published. This occasional drop out is new to 3.15
Wow - sounds very strange!
I can only think of debugging, and setting a breakpoint when you see one is missing, and looking at the properties of all the sprites and see if you can see something different about the missing ones?
I’ve had problems with textures and sprites becoming black boxes, out of nowhere. It turned out on release mode I was using bad memory or something and it got all messed up. Took me quite a few hours to figure out, but that could explain why it’s inconsistent for you too.