We have an app that downloads images and creates textures from them using Texture2d.LoadImage() while you are using the app (runtime). These textures are used in the GUI.
Unfortunately, the textures created from these images look like crud, because Unity automatically scales them for power of 2 dimensions.
I know you can change a texture to a gui texture in the inspector, or you can use TextureImporter.npotScale = TextureImporterNPOTScale.None in an editor script, and the problem will be solved.
My question is, is there any way to accomplish this or any similar solution or workaround at runtime?