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 ksakins · Mar 17, 2017 at 05:22 PM · editornavigationscene view

How do I rotate the scene view around the Z-axis

My game is in 3D mode. It is a top-down game where the Z axis is the 'gravity' axis (not sure if that matters). The point being that I cannot for the life of me figure out how to keep the view looking downward while rotating (or orbit) the scene view around this axis. Hopefully the picture helps. alt text

I want to be able to keep a top-down view while looking at this ship from the left.

screenshot-9.png (455.5 kB)
Comment
Add comment · Show 2
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 Namey5 · Mar 18, 2017 at 01:49 AM 0
Share

I don't believe you can. Why not make it actually top down, i.e. have the gravity on the Y axis and have the camera above?

avatar image RobAnthem · Mar 18, 2017 at 02:41 AM 0
Share

SceneView still uses a camera, so you can make an editor script that alters the camera itself, and to access it you would simply need.

 Camera camera;
 camera = Camera.current;
 // alternatively
 camera = SceneView.currentDrawingSceneView.camera;
 

Then you can alter the cameras position, rotation, and LookDirection like you would any object with a Transform.

2 Replies

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

Answer by ksakins · Mar 21, 2017 at 09:53 PM

Thanks for the responses. It was as I feared -- I started out creating my top-down game using a tutorial (ironically put out by folks at Unity) which had me switch the Y & Z axes for the sake of simplicity when thinking in terms of moving your player along the X & Y planes. However this ended up causing more headaches down the road when I started dealing with the editor camera, gravity, scaling, etc.

RobAnthem's answer looked somewhat promising, but I didn't really want to continue down the road of fighting the way Unity's coordinate system works. In short, I went back and flipped my axes back to Unity's default. It was somewhat of a pain and took me a couple days, but it's working now and I feel better about the decision to bite the bullet and make the change.

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
1

Answer by Akulist · Apr 04, 2019 at 07:43 PM

Hi! Faced the same issue and finish with handful script wich does the job. Hope it'll help someone.

https://forum.unity.com/threads/change-scene-view-camera-rotation-axis-from-y-to-z.649624/ The general idea is to look at Unity's own SceneViewMotion.cs

Comment
Add comment · Show 1 · 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 bleedinginkmusic · Sep 28, 2020 at 10:52 AM 0
Share

I'm having this same exact problem. I'm fairly new to Unity and I was wondering if you could explain how I would actually go about implementing this? I can't find any script called SceneView$$anonymous$$otion.cs anywhere.

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

80 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 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 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

Change editor to use Z-axis as vertical 2 Answers

Can't move GameObject in Scene view with Unity Components attached 2021.2.2f 0 Answers

How to increase scene navigation speed over 99 0 Answers

Rounding small decimals of all transforms in a scene 2 Answers

Shadow Z-fighting In Scene View 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