Question by
chillypacman · Oct 16, 2016 at 01:54 PM ·
serializationtextasset
TextAsset thinks file is ~6856 bytes when it is 120123 bytes
So I've created a text asset in Unity of a binary file which i'm attempting to read in as a byte array.
The result I'm getting is a byte array tht is almost half the size it's supposed to be.
The file is a serialized mesh file from here: http://wiki.unity3d.com/index.php?title=MeshSerializer2
What I do then is find the file unity created, move it to the assets folder and drag it into a component as a TextAsset. For simple mesh types it works but for larger ones it seems to be failing.
Comment