Resulting file from built different from in-editor play

Hi All,

Pretty new at Unity.
Got a problem which I suspect others must experience too. Unfortunately, I have no clue how I would have to search for it on the forums.
It is a bug I think.

What happens is the following: I make an adjustment in my code(Javascript), which then executes correctly when I press the play button.
But when I build the file, the adjustment isn’t taken in and an old version of my game seems to be build (or the old not overwritten).
So the resulting executable doesn’t have the adjustment while it was successful in the editor.

Could someone please help me with that? Thanks in advance.

PlayJoy

Hi, you must be doing something special.
Could it be that you don’t press yes when building new player? Or maybe you build to one location and run from the other? Or there are some errors shown when you are building?

Try deleting the player from location you are building to first, and then rebuild and see if it reappears.

Thanks for your reply Rytis.

Hmm, I am not asked if I want to build a new player (I build for Windows Standalone)…
I am overwriting the previous file (which of course I am asked) and I also tried to delete the old files first but that won’t fix it, new files do appear.

It is very strange.

Have you tried to reimport all assets? Otherwise maybe you could make small project that shows the issue and send it through bug reporter? (write case number here in forum)

Importing all assets didn’t solve it.

Case 353560

Edit:
And I see now, that I was a bit uncareful with writing the report.
In the sentence
“Press the play button in the editor and see what the up button.”
ignore the word ‘what’. Which could implicate some bad mouth practices :wink:

So first thing: is it just in a package of bug report, or do you really build your game into Assets folder? Delete it from there. Build to some other location.
Do you see any errors in console?
I tried modifying the code and “up” button appears and disappears as it should.
Maybe you could make a screencast to show what exactly you do? (using e.g. http://www.jingproject.com/)