• 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 Marvin Hawkins · Jan 19, 2011 at 05:07 AM · build-error

How do I Fix Build Errors in Unity 3D

I'm have an error that does not allow for the proper building of code in my game. To Explain, if I run the game in editor, the game works fine.

When I attempt to build and run the game however, several code behaviors seem to not work. For example, after dying 3 times, the player is asked if he'd like to continue. Instead of bringing up the GUI (which works in the editor) the game freezes.

I saw this error at the bottom of my console:

"Couldn't copy player scene into data folder... Assets/Scenes/sh_1.unity"

I also saw this warning:

**Assets/Standard Assets/Scripts/CombineChildren.cs(27,25): warning CS0436: The type `MeshCombineUtility' conflicts with the imported type `MeshCombineUtility'. Ignoring the imported type definition**

What do these error mean, and how do I fix them? I saw a similar post here:

http://answers.unity3d.com/questions/12836/build-error-something-about-editor-objects

But I'm not using a Unity.Engine call. (at least not that I'm aware of.) Any thoughts? Thanks.

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
1
Best Answer

Answer by jashan · Jan 19, 2011 at 09:59 AM

Warnings don't prevent compilation or playing - so that's really just warnings.

Usually, the errors are pretty descriptive and if you read them carefully, they will give you pretty good hints at what the solution is.

In this specific case:

Couldn't copy player scene into data folder... Assets/Scenes/sh_1.unity

it looks like most likely, there's some sort of permission problem in your file system. Another possible explanation are file locks (someone still accessing a file you want to write to), or disk full (ooops, that would not be nice ;-) ).

The problem with the game freezing could be caused by some infinite loop or recursion. When a game freezes (or the editor freezes), that is the problem in almost all cases. Rarely, however, it could also be a problem with Unity itself (it sometimes does crash in unpleasant ways ... but as said: a scripting problem is much more likely).

Infinite loops / recursions are kind of hard to debug. Well, with the debugger we now have it's much easier but you still need to find the right entry point that will show you were it loops indefinitely.

Comment
Add comment · Show 1 · 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 Marvin Hawkins · Feb 05, 2011 at 05:01 PM 0
Share

Thanks, It is working now.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

Material doesn't have a color property '_Color' 4 Answers

Is it possible to create / replace prefab in builded game? 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