• 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 qJake · Jun 19, 2010 at 03:00 AM · build-error

Build Error (Something about Editor Objects)

So I'm getting weird build errors when I build a Windows Standalone player:

Internal Error: Including Editor Object in Asset Bundle DefaultAsset [path/to/my.scene]

Repeat over for all my scenes. Then this one at the end:

Error building Player: Couldn't build player because of unsupported data on target platform

Here is any relevant information I can think of:

  • I used the "CreatePlane" script on the Wiki to create a 1x1 plane that I use for a lot of my objects. It was in the Editor folder, but I moved it to a "Meshes" folder.
  • The game plays perfectly fine in the editor.
  • My editor folder is empty.
  • The Unity project folder was inside Dropbox, but I copied it out, and re-imported the assets. Still no luck.

If you tell me I can't use the meshes that the CreatePlane script created, I'm not going to be happy... I've got over 40 scenes and hundreds of objects that use these planes, and replacing them would be a very, very tedious task.

UPDATE

I duplicated my project folder and went hunting. It eventually came down to this: I removed EVERYTHING from my Assets folder except my Scenes/ folder, and was still getting these same errors. I took one of my scenes, and cleared it out, except for the default Main Camera. I then re-built, and this error still came up for that scene.

This leads me to believe there has been a misconfiguration with Unity's project settings somewhere, but I don't know where to begin looking since the error is so arbitrary.

This does completely rule out any of my assets, as well as any of my game objects in my scenes, however, which is a start.

Comment
Add comment · Show 8
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 Eric5h5 · Jun 19, 2010 at 03:10 AM 0
Share

$$anonymous$$eshes are just meshes, it doesn't matter if they were made with an editor script or not. I've used that script in at least a couple of projects with no problems.

avatar image qJake · Jun 19, 2010 at 03:35 AM 0
Share

Then I'm completely baffled as to what the problem is. $$anonymous$$y game won't build while these errors persist, so any insight would be awesome >_<

avatar image Eric5h5 · Jun 19, 2010 at 04:53 AM 0
Share

Do a "reimport all" on the assets? $$anonymous$$aybe something got corrupted somehow.

avatar image qJake · Jun 19, 2010 at 05:29 AM 0
Share

Nope, tried that. -- $$anonymous$$y game was inside Dropbox, but I copied it to another folder, and re-imported everything again, and still no luck. :( (Added this information to my post, as well).

avatar image qJake · Jun 19, 2010 at 05:37 AM 0
Share

The three meshes that were generated from "CreatePlane" are .asset files on the disk, is this a problem? (I don't know, I've never seen an .asset file before)

avatar image Eric5h5 · Jun 19, 2010 at 05:59 AM 0
Share

It's not a problem. As the docs about CreateAsset say: "You must ensure that the path uses a supported extension ('.mat' for materials, '.cubemap' for cubemaps, '.GUISkin' for skins, '.anim' for animations and '.asset' for arbitrary other assets.)"

avatar image qJake · Jun 19, 2010 at 06:07 AM 0
Share

Well then I'm stumped. Right now I've duplicated my project folder and am fucking around in it, deleting/changing random things hoping to uncover the problem.

avatar image qJake · Jun 19, 2010 at 07:45 AM 0
Share

I've updated my post with more information. It has to be a Unity misconfiguration, none of my assets or game objects are the culprits.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by qJake · Jun 19, 2010 at 08:45 AM

Turns out I can't have a UnityEngine.Object reference in my script that I fill in with the Inspector, which is complete BS. I'll have to go edit my other answer about that question stating that it's not possible. I removed all references to UnityEngine.Object and rewrote my LevelManager script (hastily), but everything builds fine now.

If anyone at UT is reading this, this may be a Unity bug, so it might be pertinent to take the appropriate actions. If this was intended behavior, then types of UnityEngine.Object should not appear in the Inspector as editable variables.

Comment
Add comment · Show 3 · 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 Eric5h5 · Jun 19, 2010 at 06:43 PM 0
Share

Bugs don't get into the database here; you should use the bug reporter.

avatar image qJake · Jun 19, 2010 at 06:47 PM 0
Share

I don't like the bug reporter, I never get feedback on anything I submit, be it a single sentence, or 3-4 paragraphs. I feel like it's just getting "lost in the system".

avatar image qJake · Jun 19, 2010 at 06:47 PM 0
Share

Regardless, you're probably right. I will.

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

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

How can I stop the variable values reverting to its default values after being built? 1 Answer

no Audio after Build? 0 Answers

Unity iOS Build Bitcode Issue 1 Answer

DLL plugins unsupported for Android Application Building 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