- Home /
Unity editor works but the built game doesnt.
Ok so i am currently running into a little snag that is keeping my team from releasing alpha for our game. To start off let me explain what is going on. So currently when you run the game in the editor its self there are 0 problems. Now when you run the game in the built version there is a slight bug that i cant seem to fix. When you send a message to through the chat which is controlled with a GUI.TextArea it sends the first message you type correct but as soon as u start to type your second message it sends the first letter you typed and every second message you are going to send. Now as i mentioned this problem never occurred in the unity editor testing mode until we tried the built version so if anyone needs any extra code or anything pertaining to this to try and help let me know and thank you for your help.
Weird. Without looking under the hood it's difficult to know what could be happening. You're not running two instances of the game at the same time or something like that? maybe the build is running with the editor version at the same time and both are registering input.
Given that you're talking about a chat window, I'm assu$$anonymous$$g that this is a multiplayer game. There are so many issues to look for it's going to be very hard to suggest anything... but check the RPC calls to see whether the message is being sent correctly (but incorrectly displayed), or whether it's not even being sent right. Are you buffering the chat messages?
But see the thing is when i run the game in the editor there is no problems at all. It is only running one instance of the game and the editor its self isnt running so thats not the problem. Yes it is a multiplayer game and the chat works perfect in the editor but for some reason it doesnt like the built version at all. I personally think something is calling only one time in the editor version but it is calling twice in the built version but i cant seem how to solve that when i run the game. It only messes up when you run the .exe file for the game that was built. It is very annoying and i cant seem to find the problem ive tried removing code, commenting code out of certain palces and re running the game and nothing changes
Have you looked through the output.log for the compiled game? Is it a standalone or webplayer executable? Are you loading any plugins or other files at runtime that aren't referenced from any script and aren't found in a Resources folder?
Your answer
Follow this Question
Related Questions
C# Multiple GUI.Tooltips 2 Answers
C# GUI.Tooltip If Statement 2 Answers
C# Rows and Columns GUILayout.Window Issues 1 Answer
C# Applying Transparency to a Single GUI.Button 1 Answer
C# Boolean Doesn't Change Value 1 Answer