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 Gavbean · May 10, 2017 at 01:20 PM · error messageerror builderror-building-player

When i try to build my game... Issues occur

When i tried to build my game to test it, i got this error:

Error building Player because scripts have compile errors in the editor

Upon checking the editor log, i found this:

Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.007433 seconds (Nothing changed) Error building Player because scripts have compile errors in the editor

(Filename: Line: -1)

Unloading 1 Unused Serialized files (Serialized files now loaded: 0) System memory in use before: 142.3 MB. System memory in use after: 142.5 MB.

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 3399. Total: 13.791939 ms (FindLiveObjects: 0.693588 ms CreateObjectMapping: 0.054516 ms MarkObjects: 13.009963 ms DeleteObjects: 0.028612 ms)

*** Cancelled 'Build.Player.MacStandaloneSupport' in 0 seconds (434 ms)

Any help?

Comment
Add comment · Show 2
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 tanoshimi · May 09, 2017 at 01:40 PM 0
Share

And what are the compile errors shown in the console log?

avatar image Vandarthul · May 18, 2017 at 01:35 PM 0
Share

Are you using platform dependent compilation?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Werhunter · May 21, 2017 at 03:11 AM

Hi @Gavbean,

i would recommend checking your console to see if you have any warnings (the red icon's) since there might be a problem in one of your scripts your using > (Error building Player because scripts have compile errors in the editor)

and just in case if you are using:

public gameobject objectname;

or

[serialize field] private gameobject objectname;

then check if you put the objects in the object or script you are trying to use since that might also give some errors

also does the game work when you start the game in the editor? beacus your problem might come from that

and check if you added the scene to the build your trying to make

i hope one of these might fix your problem

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
avatar image
0

Answer by madskillzHD · May 22, 2017 at 03:56 PM

How much space do you have left on your hard drive or SSD, the place you are building project to?

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
avatar image
0

Answer by Laurence_B · May 23, 2017 at 08:21 AM

I am not sure if this is correct so please don't "dislike" my answer if it's wrong.

It says in the Editor Log: "Scripts have compile errors". That means you have errors in one (or not only one) script. Try testing your game in Unity!

But again I am really not sure if I'm correct.

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

8 People are following this question.

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

Related Questions

Build error [0x00242] 0 Answers

error CS0246: The type or namespace name 'EditModeInputHandler' could not be found (are you missing a using directive or an assembly reference?) 1 Answer

OperationCanceledException: Failed to prepare target build directory. Is a built game instance running? 0 Answers

I can't build my unity HDRP progect. 0 Answers

CommandInvokationFailure when building apk... Trying to use Google Play Services 0 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