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 yeagz7 · Nov 11, 2013 at 03:23 AM · cameraeditoreditorwindowrenderhandles

Draw Camera to Editor Window

Hello Unity friends,

I am having trouble drawing a camera to an Editor window and was wondering if anyone could give me some help. I am currently using Handles.DrawCamera but the position argument also changes the viewport (which I do not want to do). Is there a way to position the camera's render without changing its viewport with the Free version of Unity?

Thank you in advance!

Comment
Add comment · Show 4
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 karl_ · Nov 11, 2013 at 03:48 AM 0
Share

So the issue is that modifications made to the SceneView camera affect both the SceneView and Editor Window, where you only wish to modify the Editor Window's view of the scene?

avatar image yeagz7 · Nov 11, 2013 at 04:54 AM 0
Share

When I open the Editor window I pass a newly created camera to the Handles.DrawCamera method as the camera parameter. The problem I am having is that I can't position the camera on the Editor window in its OnGUI method. When I pass different Rects into the position parameter of Handles.DrawCamera it changes the cameras viewport and not its position in OnGUI.

avatar image karl_ · Nov 11, 2013 at 05:05 PM 0
Share

Ah, I see. Can you wrap the Handles.DrawCamera call in a GUI.BeginGroup() block?

avatar image yeagz7 · Nov 12, 2013 at 06:08 AM 0
Share

Just tried it to no avail. The x position is correct but if I try to move its y position down it just scales it.

1 Reply

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

Answer by yeagz7 · Nov 12, 2013 at 06:17 AM

Holy crap I solved it. I need to have the Game View hidden. If anyone could explain this to me I would be eternally grateful.

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 karl_ · Nov 13, 2013 at 11:32 PM 0
Share

This might have something to do with the camera setting itself to Camera.current after assignment. Or are you already accounting for that?

avatar image yeagz7 · Nov 14, 2013 at 12:47 AM 0
Share

I am not. Is there something I should be doing?

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

17 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

Related Questions

Drawing handles in multiple camera's 0 Answers

GUI error when using HandleUtility.PickGameObject() 1 Answer

Render camera in EditorWindow 1 Answer

How create working handle (position, rotation) without select GameObject 1 Answer

Drawing Handles 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