Hi,
I have a GUISkin that is used in a script and it works correctly when I press play and run in the editor but when I build the project and run it, the textures in the GUISkin won’t appear.
Do you know how can I fix this issue?
Thanks!
Hi,
I have a GUISkin that is used in a script and it works correctly when I press play and run in the editor but when I build the project and run it, the textures in the GUISkin won’t appear.
Do you know how can I fix this issue?
Thanks!
Are the textures in your project’s Assets folder?
Yes, under Assets/Resources/
If it appears properly when you play it in the editor, you’ve got the files in the “Assets” folder, and have double checked that they are importing properly (right click and double check import settings and re-import), then I’m stumped. You’re not getting any errors while playing in the editor? You’ve double checked that your scenes are in the build list?
yes
yes, just checked again.
No errors
Yes although this is a web streamed build and these textures are in a level to be loaded.
Is it possible that unity doesn’t detect that the textures are being used and they don’t get included in the build?
I’m asking this because the textures are only used in a GUISkin that in its turn is only used in a script that is only used in a streamed level to be loaded.
This could be causing it. Unity only includes those textures used in the selected scenes during the build process (although it includes all scripts in the Assets folder, whether they are used or not).