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 ashjack · Oct 05, 2014 at 05:08 PM · cameraguipanelinvisible

New Unity GUI has messed up the scene camera

I added a GUI panel, and changed it to Screen Space - Camera, now the scene camera starts making things invisible when I get within about 10 meters of them. Here is a screenshot:

http://prntscr.com/4tbf79

What should I do to fix this?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Bentoon · Oct 05, 2014 at 05:18 PM

it looks like the clipping plane in the Camera / or possibly that the new GUI's Rect is visible in scene view but not during play - hard to tell from the shot

~be

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 ashjack · Oct 05, 2014 at 05:44 PM 0
Share

How could I make it clearer?

avatar image StianC · Nov 05, 2014 at 11:00 PM 0
Share

try setting the near clipping plane to 0 or as close as it will let it go

avatar image Bunny83 · Nov 05, 2014 at 11:41 PM 0
Share

@StianC: The screenshot shows the SceneView, not the GameView. You can't set the clipplanes of the SceneView camera :)

Also you can't set the near clipping plane to 0. It always has to be greater than 0. Otherwise you would project the whole scene to the same point. Actually you can't calculate the projection matrix with a near clipping plane of 0 since it's calculated like this. If Zn is 0 you would set everything to 0 except the z axis

avatar image
0

Answer by Bunny83 · Nov 05, 2014 at 11:34 PM

The SceneView camera works as both, a FPS camera and an orbitting camera. For this purpose there's a hidden pivot point in the front of your SceneView camera. If you move around (with right mouse button + W A S D ) you move the pivot with you at a constant distance in front of you. On the other hand when holding ALT down and use the left mouse button you can orbit around that point. When you use your mouse wheel you actually change the distance to the pivot. Depending on the distance from the pivot the FOV of the SceneView camera is modified.

Try to selet a Gameobject in the hierarchy, mouse your mouse over the SceneView and press "f". That will refocus the camera on that gameobject. It places the cameras pivot on the target object and tries to find a distance / FOV so the object is fully viewed.

Some time ago i've created a simple editor window that will draw a small cube at the SceneView's pivot point. Just try it. With that cube visible it's way easier to switch between FPS and orbit mode.

btw: If you create a new GameObject it will be placed at this pivot point.

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

29 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 avatar image avatar image avatar image avatar image avatar image 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

How to make a Cube act as a button to increment a number on a screen overlay panel in an FPS? 1 Answer

Can the Camera be Positioned on the Game Screen through code? 0 Answers

Changing where another Camera renders 0 Answers

Drawing GUI rectangle uses negative y coordinate 1 Answer

Detecting camera viewport on mouse down? 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