Got a bit of a strange problem (aren't they all strange though? 😉). When importing the needed files into an existing project, it fails to compile with the following errors:
Assets/spine-unity/AtlasAsset.cs(64,114): error CS1502: The best overloaded method match for `Spine.Atlas.Atlas(System.IO.TextReader, string, Spine.TextureLoader)' has some invalid arguments
Assets/spine-unity/AtlasAsset.cs(64,114): error CS1503: Argument #3' cannot convert
MaterialsTextureLoader' expression to type `Spine.TextureLoader'
First thought would be that this is conflicting with something in my project. Which chances are it is - because when I import the Spine files into a new project, the above error doesn't occur. However, in trying to track down the issue, the code being used is all within Spine or within Unity's main .NET levels. So I'm unsure of where to look next to fix the problem.
Reviewing the code, this is the part in AtlasAsset.cs that the above error occurs on:
atlas = new Atlas(new StringReader(atlasFile.text), "", new MaterialsTextureLoader(this));
Best I can tell, the Atlas object wants an object of type TextReader, not StringReader. I would go through and edit everything to function correctly, however I would prefer to work out the actual issue with you guys rather than coming up with a hack solution. 🙂
Any pointers as to how to correct this?
Thank in advance!