• 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
2
Question by ChimpKing · Dec 21, 2010 at 06:57 PM · errorbuildgamebuild-errormissing

Missing parts when I build my game....

I set up a side-scroller/runner game and it works perfectly in the play panel of unity. But when I Build & Run my platforms and player disappear but my GUI is still there.

What is going on? (My game is based on the z-axis if that matters....)

EDIT: Comment and tell any other info you need to find out what is wrong.

Comment
Add comment · Show 6
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 Justin Warner · Dec 21, 2010 at 07:59 PM 0
Share

Check that the Z Axis of the platforms and everything is in front of the background? Also that their are color contrasts and a light actually aiming at the side and not just from the top.

avatar image ChimpKing · Dec 21, 2010 at 08:10 PM 0
Share

I used toonyshader so light is not an issue (is it?). Also, I didn't put a background yet, so that shouldn't be an issue either.

avatar image Statement · Dec 23, 2010 at 08:18 PM 0
Share

If you have any warnings or errors in console output, those would be helpful. Also see the log file produced by your build after the game is run for any problems.

avatar image ChimpKing · Dec 23, 2010 at 09:10 PM 0
Share

I don't have any warnings or errors.... I checked the log and don't see anything wrong too....

avatar image Statement · Dec 23, 2010 at 09:19 PM 0
Share

Is there anything different with the object that disappear? Do you have any code that is destroying items that might be doing something wrong? Consider creating a script that monitor one or more of these objects and log to file if they become null. In that case, something surely is removing them during Awake or Start.

Show more comments

2 Replies

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

Answer by Statement · Dec 23, 2010 at 09:16 PM

Make sure you have selected the proper level(s) in your build settings. You might for instance at an earlier point in time made a test in a scene with the gui alone, and you might be repeatedly running that scene.

Comment
Add comment · Show 7 · 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 ChimpKing · Dec 23, 2010 at 09:55 PM 0
Share

WOW. I'm such an idiot. I changed the name of my scene and never re-added it to the build settings. Sorry for wasting your time. Enjoy the easy points :P

avatar image Statement · Dec 23, 2010 at 09:58 PM 1
Share

Don't feel sorry. I find great joy in helping others. Otherwise I probably wouldn't be hanging around here ;) I can't really buy food with the points or use them in other ways. :) Glad your problem was solved!

avatar image ChimpKing · Dec 23, 2010 at 10:13 PM 2
Share

Yah man, wish there were a million people as nice as you :P Thanks again for helping.

avatar image Statement · Dec 23, 2010 at 10:23 PM 1
Share

Thanks, you made my christmas :)

avatar image RAWilco · Apr 14, 2014 at 07:23 PM 0
Share

Ha! I just did this exact thing this morning, it's been driving me mental all day. I felt like a proper berk when I realised.

Show more comments
avatar image
2

Answer by Statement · Dec 23, 2010 at 08:03 PM

If you have tagged something "EditorOnly", then those objects are excluded from a build.

Check some of your objects if this tag is placed on them. If they do, remove the tag.

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 ChimpKing · Dec 23, 2010 at 09:06 PM 0
Share

I left them untagged.... so that isn't the issue.

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Error: System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. 0 Answers

"Error building Player" WebGL build error 2 Answers

WindowsPlayer Error when building project 1 Answer

1 exception was raised by workers: See the Console for details. 0 Answers

How come I can't move in the built version of my game? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges