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
1
Question by OmegaFalcon · Apr 03, 2021 at 07:12 PM · editorbuild-errorbug-perhaps

Game works in editor, not in build

I created a sort of cellular automata where there is a grid of cells and at each frame, the cells are updated. For some reason, in the build, the behavior of the cells is very different from the editor version. I have no idea what could be the problem. I get no errors in the editor and it's not like the build completely doesn't work, the cells just don't behave correctly at all.


I very much doubt the problem is with my code. Is it something I can fix in the settings perhaps? I have tried searching for solutions, but I don't have anything tagged EditorOnly, and I haven't deleted any tags, so the solutions I've seen don't apply.


Edit: Some more detail. It actually seems like the game window size in the editor also affects this. When the window is minimized, things work properly, but when the game is maximized, it does the same as the build and doesn't function like it should.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by BugiGames · Apr 04, 2021 at 01:47 PM

try maybe to run your game with Screen.Set Resolution(960x540, true); because games are automatically run on Unity on full hd 1920 x 1080 which is eating lot of performance

 Screen.sleepTimeout = SleepTimeout.SystemSetting;
         int qualityLevel = QualitySettings.GetQualityLevel();
         Time.fixedDeltaTime = 0.007f;
         Application.targetFrameRate = 320;
         if (qualityLevel == 0)
         {
             QualitySettings.vSyncCount = 0;
             QualitySettings.antiAliasing = 0;
             res = true;
             if (res)
             {
                 Screen.SetResolution(960, 540, true);
             }
         }
         if (qualityLevel == 1)
         {
             QualitySettings.vSyncCount = 0;
             QualitySettings.antiAliasing = 0;
             res = true;
             if (res)
             {
                 Screen.SetResolution(1024, 576, true);
             }
         }
         if (qualityLevel == 2)
         {
             QualitySettings.vSyncCount = 1;
             QualitySettings.antiAliasing = 2;
             res = false;
         }

something like this, also you need create script for saving data for quality from main menu.

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

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

My android app build has more bugs on it than the editor/deveploment version 0 Answers

Buggy artifacts in editor and play view? 0 Answers

cannot open a unity scene 0 Answers

Unity Builds Old Version of my Scene 1 Answer

Inspector issue about draw Button(s) on top of EditorGUI fields, and "CLICK" on it. 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