Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 save · Aug 28, 2011 at 12:01 PM · cameraeditorscene

Control Editor Scene Camera

Is it possible to access the Scene's camera? I can't find anything about it in the reference.

What I'd like to do is to set it to "Back" instead of "Perspective" to get isometric/orthographic(or what could be described as most similar to orthographic) view automatically at certain points of editing. This is to make sure our level editors always get the right perspective as our game is 2D.

Impossible, improbable or doable? :-)

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
1
Best Answer

Answer by Joshua · Aug 28, 2011 at 12:23 PM

It's not possible to change the SceneView's camera's perspective. It is, however, already orthonographic by default, so I'm not sure I understand your question.

Comment
Add comment · Show 4 · 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 save · Aug 28, 2011 at 08:56 PM 0
Share

Ok thanks for clearing that up, not even possible by hack? I'm not very sure what you mean by the camera being orthographic as it doesn't render objects uniformly and has a perspective whilst moving. Switching to left, right, front or back does however render objects without perspective (but render their true size in the perspective). I do feel I get more and more unclear as I go on. :-)

So no go for scene camera controls in Unity, that's good to know!

avatar image save · Aug 30, 2011 at 09:21 AM 0
Share

Perhaps I'm confusing orthographic with isometric here, the camera should always see everything isometric from a zero degree rotation in front position. But as long as we don't have control over the scene view camera via script it doesn't matter.

How about adding another camera that takes over the scene view?

avatar image Joshua · Sep 01, 2011 at 12:55 AM 1
Share

Well you surely can fake your own sceneview by creating an Editor Window, not sure how much trouble this would be but it surely can be done.

 "Ok thanks for clearing that up, not even possible by hack?"

Nope, not as far as I can tell. I tried messed around with SceneView.lastActiveSceneView.camera, but it seems as soon as you edit anything it gets reset.

avatar image save · Sep 01, 2011 at 12:38 PM 0
Share

Ok thanks Joshua for the insight and testing. I get pro-shivers when thinking of how constructing our own scene view would build up trouble, it's best to leave it be. :-)

avatar image
7

Answer by qbertreynolds · Nov 23, 2012 at 09:59 PM

I'm not sure if the accepted answer is misinformed or just outdated, but it absolutely is possible to programmatically change the scene view camera's projection.

 SceneView.lastActiveSceneView.orthographic = true;

To set it to a back view

 SceneView.lastActiveSceneView.LookAt(SceneView.lastActiveSceneView.pivot, Quaternion.LookRotation(Vector3.forward));
Comment
Add comment · Show 2 · 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 keeperkai2 · Oct 01, 2014 at 07:42 AM 0
Share

Awesome, been trying to find this for a long time.

avatar image Crazydadz · Nov 03, 2015 at 03:52 AM 0
Share

Thank you! Upvoted.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Camera behavior the same as the unity editor has 2 Answers

Camera Zoom in Scene View 1 Answer

Scene View camera clipping 1 Answer

Setting the SceneView View Angle/Position? 1 Answer

On can I have OnBecameVisible/Invisible ignore the scene/editor camera and only work for the game camera ? 6 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