Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 maggot · Oct 30, 2011 at 10:36 AM · buildscreenrunafterblank

Blank result from build and run

I've created a scene with only an empty GameObject in the hierarchy, which has a script component that loads everything for the game. The game works fine by clicking the play button, but build and run just gives me a blank (ie blue) screen. I've tried adding a cube to the scene at the area where the camera would be looking, but it appears to be a problem with the camera I created through the script.

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

3 Replies

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

Answer by maggot · Nov 16, 2011 at 12:51 PM

Alright, I have got it working now. It was a problem with script execution order. It works both in the game window and in build and run.

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 syclamoth · Oct 30, 2011 at 10:38 AM

Make sure that you've got the correct scene as 'scene 0' in your list of scenes to build. It doesn't automatically add the one you are currently in- you have to do it manually.

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 maggot · Oct 30, 2011 at 11:10 AM

Done that, it makes no difference.

It appears to be a problem loading / accessing the FBX character which then has the camera attached to it.

Comment
Add comment · Show 5 · 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 syclamoth · Oct 30, 2011 at 11:26 AM 1
Share

How are you loading the character? Shouldn't you just be using the project window? Also, don't post comments as other answers, please.

avatar image maggot · Oct 30, 2011 at 12:07 PM 0
Share

whoops - clicked wrong button before. The script is taking an fbx object from the project area and putting it into the hierarchy, which it then uses as character reference for the game.

code :

example = (GameObject)Resources.LoadAssetAtPath("Assets/$$anonymous$$odels/character.FBX", typeof(GameObject));

I've got a workaround by dragging my character across from the project to the hierarchy windows and adding script components to it in the hierarchy window.

avatar image syclamoth · Oct 30, 2011 at 12:47 PM 0
Share

You should really use prefab instantiation for this. It's much safer. Is there any good reason why you aren't already?

avatar image maggot · Oct 30, 2011 at 02:05 PM 0
Share

Only because I want to make changes to my FBX model without having to make any changes in inspector etc for Unity

avatar image syclamoth · Oct 30, 2011 at 02:21 PM 0
Share

... I've never had any problems with that.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Nothing shown on build 1 Answer

Distribute terrain in zones 3 Answers

Build Game for Xbox 360 1 Answer

how to get a window bigger than screen 0 Answers

Built .exe Won't Run 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