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
5
Question by Jay2ThaTee · Feb 19, 2015 at 09:13 AM · cameragameobjectdisplay

Camera not displaying any gameobjects in scene

Complete unity noob here so please accept my apologies in advance for what is likely such a basic question...

I've been putting a game together, which was working fine. Then I decided to reset the transform for most of my game objects to center everything up neatly. As part of this, I reset my MainCamera object's transform, and now I can't see any of my GameObjects in the game (as per the screenshot.) The camera is aligned so it should show everything, and in scene mode I can see everything. All of my GameObjects (including camera) are on the Default layer (with obvious exception of UI elements) which is definately not disabled/locked, yet nothing appears in Game mode.

Any help would be much appreciated, thanks in advance! alt text

unityerror.png (80.2 kB)
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

4 Replies

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

Answer by Kiwasi · Feb 19, 2015 at 09:15 AM

Quick trick for dealing with camera issues in 2D games. Click on 2D up on the bar at the top of the scene view to see how the objects are arranged in 3D. In all likely hood your camera is looking behind your objects. Then just drag the camera back a bit.

The solution is to set the z on your camera transform to something like -20.

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 Jay2ThaTee · Feb 19, 2015 at 10:01 AM 0
Share

D'oh, of course! Thank you, much appreciated!

Thanks also for the tip I will bear that in $$anonymous$$d.

avatar image pereto5 · Dec 29, 2016 at 01:45 AM 0
Share

FINALLY!!! THAN$$anonymous$$S!! the camera somehow was looking behind the objects like you said, I change the Z scale to -20 and worked perfectly.

avatar image officialmparts pereto5 · Mar 18, 2018 at 10:37 PM 0
Share

changing it to -1 works as well; depth above 1 does not make a difference in 2D

avatar image
0

Answer by khailcs · Oct 05, 2016 at 05:26 AM

It worked. Thanks!

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 $$anonymous$$ · Feb 02, 2018 at 05:59 PM

Breh

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 alpayoguz97 · Oct 14, 2020 at 09:39 AM

Worked thanks

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

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

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Set a steady angle between gameObject and Screen 0 Answers

How do you get the game to look the same across all devices? 0 Answers

I want to display imported fbx object inside imported fbx object. 0 Answers

Unity3D scene not rendering objects in Game screen 3 Answers

Display Leapmotion IR camera image on Unity UI 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