You can't add Sprite to a Canvas. Canvas children must implement
IUIComponent. The heavier the child is, the more memory and cpu it will
Thanks for anwering...
But it is possible to add Sprites to a Canvas:
I have done a simple test...I added a lot of Sprites and also a lot of Canvas to a Canvas.
I checked the loadedBytes count and also the informations from the taskmanager.
my result is that it doesn't make any difference!
I was totally surprised by that result, couse that means also you can always use high ordered classes without any memory or cpu lost.
You don't have to think about a slim programming style.
I don't know if my test are really good to make that statement.
please feel free to commend this statement.
Yes, you can use rawChildren, and while that does parent the Sprite, it is
not managed with the other children.
I would expect 1000 Canvas to take another half meg or so. That might not
show up in taskmanager. I don't know what loadedBytes is.