- Home /
How does the Unity editor import raw
I cannot load raw as a Texture2D - how does unity handle .raw files in the editor? How would I go about figuring that out?
Answer by Downstream · Feb 19, 2015 at 03:04 AM
So I used ILSpy to open UnityEditor.dll and found the method the editor uses:
UnityEditor.ImportRawHeightmap -> ReadRaw
Hopefully I can adapt this for use at runtime..
Answer by Dzoni94 · Feb 18, 2015 at 09:55 AM
As far as I know, Unity does not support using .raw files as textures. Not sure if you are referring to "Raw Image" from Unity 4.6 UI, which neither has relation with .raw files.
Well the editor can import .raw files as heightmaps, so I'm looking for an answer as to how I can either turn the .raw directly in to a float[,] or a texture, which is the current pipeline that people use.
Your answer
![](https://koobas.hobune.stream/wayback/20220613183636im_/https://answers.unity.com/themes/thub/images/avi.jpg)