- Home /
Why does the behavour of my script change when it is built?
The script consists of a start and an OnGUI function. The purpose of the script is to display images from the resources folder and display them. The OnGUI lets you view the next page in the folder when a button is pressed.
This works fine in the unity editor but it does not when i build it. When it is build then the following happens:
First time i press the button, it changes the images and shows the next ones from the folder as it should. Second time i press the button it does not display the next images from the folder. Does anyone have an idea why it is working in the unity editor and not when it is build?
I use the Resources.load function to load the images as textured2 objects.
Code, and what is your build target? Standalone? Webplayer?
Your answer
Follow this Question
Related Questions
[solved]Using WWW instead of resources.load causes hang 1 Answer
'Assets' directory still needed after standalone was built 1 Answer
When generating prefab, i cant load images from either resource or assetbundle 2 Answers
Displaying an image from a resource folder. 2 Answers
Resources does load up in the editor but not in build 0 Answers