‘Unable to cast object of type ‘Microsoft.Xna.Framework.Graphics.Texture2D’ to type ‘MonoGame.Extended.Tiled.TiledMapTileset’.’
_tiledMap = Content.Load<TiledMap>("samplemap");
I’m trying out the example code on the documentation and this is the error I’m getting.
Should the documentation example code work, or is it out of date?
I’m using version 3.8.
Any help would be appreciated.
EDIT: My own tilemap and tilesets load and render without issue, so the problem above must be to do with the sample assets.
It’s the same tutorial… but that post doesn’t seem to be solved either.
I’ve got the code working with my own assets so it’s not the code or a setting in Content. I can only assume the problem is with the samplemap / tilesets since it’s the same assets in both posts.
Additionally, these (Tiled) options don’t appear for me in the Content Pipeline… mine say Invalid / Missing.
Despite that, the program still works with my own assets so I assume those settings are unnecessary.
EDIT: (My tilemap doesnt seem to copy if newer, so could this setting be the reason why?)