okay guys I'm seeing question from persons asking how to convert byte arrays to int
, string
, Stream
, etc... and the answers to which are all varying and I have personally not found any satisfactory answers.
So here are some types that we want to convert an array of bytes to.
UnityEngine.Font
which can take in ttf
data.
UnityEngine.Testure2D
which h can take in data from image files like .png
, .jpg
, etc...
How would we convert a byte array to a String
, UnityEngine.Testure2D,UnityEngine.Font
, Bitmap
, etc...
The data that populates the byte array must be from a file type whose data can by managed by the type we want to convert the byte array to?
Is this currently possible?
Any help would be appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…