Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Capricorne · Apr 21, 2019 at 12:09 PM · windowbuild and run

build and run problem

alt text

Hello, I have a "build and run" problem. I am currently working on a group project for my school. We use GitHub to share the project with each other and Pun2 to do the multiplayer game we are asked to do. The problem is that when I launch my build and run and choose the resolution etc... When I launch my executable, it first displays a window with the Unity logo and the logo of our project on a black background. Until then, everything is normal. But when my game starts, the window disappears, becomes invisible and shows a piece of logo and the red cross to close the window next to it. When I run my executable in full screen it's the same thing except that for a short while, you can see a Unity error window appear, then the window closes by itself. I hope I have well detailed my problem.

I work on the multiplayer part. So not being able to build and run is very problematic for me. I can't do any tests. In addition to that I am a beginner so I am not yet very comfortable technically. I checked with one of my group mates and he has the same problem. In addition, on other projects everything works perfectly. I don't have that problem.

Thank you for your advance answers. :) I hope my English is not too bad. (I helped myself with a translator)

screenshotunityerrorbuildandrun.png (2.4 kB)
Comment
Add comment · Show 3
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 PizzaPie · Apr 21, 2019 at 01:30 PM 2
Share

You need to find the log file and post it, otherwise I doupt anyone can help you.

avatar image Isaac_Marovitz PizzaPie · Apr 21, 2019 at 01:52 PM 0
Share

@PizzaPie is right, this could be the result of a million different problems, there isn't enough information to really help you sorry...

avatar image Isaac_Marovitz · Apr 21, 2019 at 01:51 PM 0
Share

Is the application itself crashing?

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Capricorne · Apr 22, 2019 at 07:34 PM

Finally by creating a copy of my project and removing parts of my code. I rapidely found the issue. It's because of a function that I created to load my settings that I am recording with PlayerPrefs. In fact, the resolution seems to be null. alt text

I was conviced it wasn't it because as we can see on the screenShot width and heigth have respectively 800 and 600. alt text

And in the documention they use the same example with the same values. So I don't understand. https://pastebin.com/VsWwuHrK That's my script I use in the settings if you have the time to check it :). But the real problem comes from LoadSettings();

Thank you for yours answers ! And I apologize for my poor english once again.


unknown.png (202.7 kB)
unknown1.png (26.2 kB)
Comment
Add comment · Share
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

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

108 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 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 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 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 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 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

uploading a game to another pc 1 Answer

Resolution Size. Camera. Build & Run. Please Help. 1 Answer

Objects are leaving trace marks 1 Answer

Android build Trying to bind too many vertex attributes 4 Answers

Building my game gives issues 1 Answer


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