Im generating a mesh asset in the editor, which data i then access in the script. It works fine inside the editor, but after the build the mesh asset is marked as non readable, and as a result its failing to read any data from it in the script. There is a settable isReadable property in ModelImporter class, but my mesh asset is not a model, its just a mesh, therefore it doesnt work. These are all the settings i have available in there:
Did anyone encounter similar problem? How do i make it readable at runtime as well?
Alright, figured it out. You need to use the Force Text serialization mode, then you can just edit the asset file as a text file and change the m_IsReadable: 0 to 1. E.g:
You’re right, I thought it was responsible for messing up my materials, days later I found out that another script did it but forgot I posted this reply.