How can we convert the Texture2D type to “Sprite” using the script (not in Editor)? It seems that the Texture2D retrieved from file is by default Normal Map. I need to convert the TextureType to “Sprite”. Texture2D texture = LoadPNG(“D:/download.jpg”); testPlaneRenderer.material.SetTexture(“_source”,texture); It seems that this texture is set as “Default” or “Normal” Type when imported from file and then assigned to Material dynamically. As the particular shader I’m using, works best if the Texture Type is set to Sprite (I tested it by manually placing the texture file in Project and then assigning the texture to Material). I need to change Type of Texture to Sprite before assigning it to material. I’ve seen options like “AssetImporter” but it only works in Editor.