Download

Question: How to get a pointer to existing Game Canvas?

Other than trough a HUD class, is there any way to get a reference?

Most samples I’ve seen are “re-creating” the Canvas pointer, but probably the game holds already an instance, I just don’t know how/from where to access it.

Thank you.

There’s no generic canvas that I’m aware of; the one the HUD holds is used for the HUD and is only valid at certain times.

Edit: You can of course create a canvas for your own needs.