OK guys, I see a question from people asking how to convert byte arrays to int , string , Stream , etc ... and the answers to which everything is changing, and I personally did not find any satisfactory answers.
So, here are a few types that we want to convert an array of bytes to.
UnityEngine.Font , which can receive ttf data.
UnityEngine.Testure2D , which h can receive data from image files such as .png , .jpg , etc.
How would we convert an array of bytes to string , UnityEngine.Testure2D,UnityEngine.Font , Bitmap , etc ...
The data that fills the byte array must be from a file type whose data can be controlled by the type we want to convert the byte array to?
Is it possible?
Any help would be appreciated.
user4740550
source share