When my game starts (tower defense), I have a screen that shows a preview of the towers you can unlock and stats on enemies. This is done with a capture camera. Unfortunately, the materials aren’t showing as can be seen here:
I’ve tried everything. I’ve tried making those assets primary assets and using the AssetManager. I’ve tried pre-spawning them in the permanent level. I’ve tried PrestreamTextures(). Nothing works.
Now, having said that… for the towers, by using AssetManager, pre-spawn and PrestreamTextures, only the first tower shown doesn’t have materials. If I change the displayed page (UI) and go back, it will display correctly. But almost good isn’t good enough.
With the enemies, they don’t have pre-spawn, but do use the AssetManager and PrestreamTextures and most of the enemies don’t have materials even after paging back in forth in the UI. So pre-spawning helps. But clearly I’m missing something.
There’s gotta be a way to fix this. Anyone know how to ensure the materials are displayed? Maybe it’s a compilation thing. Anyone have any ideas?