Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by vratislavino · Sep 11, 2013 at 11:07 PM · buildexe

White window after .exe started

Hi,

I do in Unity for year or less, so sorry if question is bad.

If I play game from Unity (play button) or if I use Build & run, it will compile successfuly and I can see my Main menu. But if I try to run .exe file, an issue will appear. Game.exe stopped working with white window with frame and it doesn't respond.

So, I'm trying to develop multiplayer game. I'm using Lidgren Library for networkig, so I have connection script attached to Main Camera, where I use Callback func when message is received. It may cause this problem. I really don't know.

(I use Win8)

Thanks for answers

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ArkaneX · Sep 12, 2013 at 07:30 AM 0
Share

If you create a new sample project and compile it to exe, does it work? If yes, then I can suggest two approaches:

1) Debugging - make a few breakpoints in your code, and try to find out where it hangs.

2) You can disable some object or comment parts of code and then compile and try if exe works.

But if your sample project doesn't work, then please check on another PC - maybe the problem is related to your machine only?

avatar image Graham-Dunnett ♦♦ · Sep 12, 2013 at 10:46 AM 0
Share

also, check the player log to see if it's giving you any errors.

avatar image vratislavino · Sep 12, 2013 at 12:16 PM 0
Share

I created new Scene, added to Build settings and gave it on first place. In this scene I added only button with starting new level (my main menu). After I tried to start exe, new test scene started successfuly. After I pressed the Start button, it causes the freezing again (descried above). Then it must be some problem in code. But why it's working if I build it in Unity (Build i mean Build and run).

And one additional question: I made few breakpoints in Visual Studio, but it didnt react. It cant be started directly by pressing "Debug" in VS. And I cant add breakpoint straight to Unity.

avatar image ArkaneX · Sep 12, 2013 at 12:48 PM 0
Share

To be able to debug, you have to enable "Development build" and "Allow script debugging" options in build settings window. Additionally, you can't debug in VS by default, only in $$anonymous$$onoDevelop. Please check this page for additional info.

If you prefer VS though, then you have to use 3rd party plugin like UnityVS (commercial product).

Apart from debugging - try to run your game on another PC or maybe run it with firewall disabled, if you use any.

avatar image Reedex · Dec 22, 2017 at 05:05 PM 0
Share

hi,..long time, i see, how did you fix?

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

VR EXE not working correctly on other PC 1 Answer

Unity Build EXE Stuck 0 Answers

Why are flight controls speeds changing depending on graphics quality -1 Answers

what are the different ways of creating an exe from a unity game? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges