So I am having this issue with a line of code claiming that I am referencing a different effect that is not basiceffect?
foreach (ModelMesh Mesh in Model.Meshes)
foreach (BasicEffect ES in Mesh.Effects)
Textures[i++] = ES.Texture;
Those are the lines of code that fail for me, I have a manager that spawns 5 buildings and calls that texture loading method right there 5 times. For some reason though I get the error: Unable to cast object of type 'Microsoft.Xna.Framework.Graphics.Effect' to type 'Microsoft.Xna.Framework.Graphics.BasicEffect'.
Does anyone have a fix for this?