I have material, I want to change the texture (mainTexture) on a fragment of a texture atlas. But in order to know which to use the atlas I need to get the full path to the current texture. How to get a guid "texture asset" or just the full path to the texture of the material? News for Editor, but not for the Runtime.
I presume you would need someinfo of the texture to get the path
To get/load all the textures, you must use the Resources class; Syntax is below:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.