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 Tobias Reich · Oct 04, 2015 at 01:07 AM · camera2d3dspriterenderersprite renderer

Switching between 2D and 3D in the same Scene

Hello everyone, This is a general question but I hope someone might help me.

For the game I make, I need some 2D and 3D Elements. In the "3D world", the player is moving his character. On the other hand, when pressing a button, I want to switch to a "2D mode". This is like a map view where I want to draw the map, some icons on top of it etc.

It all works fine in separate scenes. So I have one scene with a 3D Cam, objects to render etc. In the other 2D scene I have a SpriteRenderer showing the map, the icons etc. Still both together give me trouble.

What is the best way to mix 2D Sprites and 3D Objects in one scene? The SpriteRenderer is visible in the 3D scene so I guess I need to deactivate all it's (sub)elements? And do I have to make all 3D elements inactive while rendering the 2D view? So essentially switch all elements? Sounds unlikely to deactivate the whole world just for showing the map sprites. I assume I have to give the 2D elements a separate Layer for another camera but then again, I loose the option to give my objects different layers (which I use for my 3D elements like "distructable" etc.) Or is the SpriteRender probably not the best idea?

This is what I want. Switching to map view without changing the scene:

alt text

Thanks for any advice!

Tobias

gfx.jpg (74.1 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Under_Wander · Aug 13, 2017 at 04:00 AM

My best advice would to use a Canvas and UI elements, if you want it to be more like a flat object you could have it projected onto a plane as a texture or something.

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 aayush_kumar · Aug 13, 2017 at 04:29 AM

I think you can do that by adding an secondary camera that is orthographic.

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

40 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

Related Questions

Camera display specifications,2D visuals in a 3D game with camera issues 0 Answers

Free Look Camera Pivot 1 Answer

Change from 3D to 2D 1 Answer

How can I detach a 2d object from 3d environment? Detach it from the 3d. 0 Answers

Szise is wrong in build 2 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