x


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.

more ▼

asked Dec 21 '10 at 06:57 PM

ChimpKing gravatar image

ChimpKing
115 16 17 24

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.

Dec 21 '10 at 07:59 PM Justin Warner

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.

Dec 21 '10 at 08:10 PM ChimpKing

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.

Dec 23 '10 at 08:18 PM Statement ♦♦

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

Dec 23 '10 at 09:10 PM ChimpKing

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.

Dec 23 '10 at 09:19 PM Statement ♦♦
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Dec 23 '10 at 09:16 PM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

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

Dec 23 '10 at 09:55 PM ChimpKing

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!

Dec 23 '10 at 09:58 PM Statement ♦♦

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

Dec 23 '10 at 10:13 PM ChimpKing

Thanks, you made my christmas :)

Dec 23 '10 at 10:23 PM Statement ♦♦
(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Dec 23 '10 at 08:03 PM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

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

Dec 23 '10 at 09:06 PM ChimpKing
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1938
x794
x651
x129
x121

asked: Dec 21 '10 at 06:57 PM

Seen: 1607 times

Last Updated: Dec 23 '10 at 07:28 PM