• 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 theratboy · Jun 23, 2021 at 03:31 PM · 2d3dgraphicsrpg-gamebattle-system

2D Battle System In a 3D Game

Hello Everyone. I'm trying to make a game similar to older RPG games like Final Fantasy. In my game the player walks around a top down but fully 3D environment but when they encounter an enemy, I want the game to transition to a 2D sprite based battle scene. Ideally I'd like to keep the main 3D world loaded in so there is no delay when entering or exiting the battle. The way I was thinking of handling this would be to use UI canvas elements and have a background layer that blocks the main scene but this might present some problems later on. Is there anyway I can pipe in a fully 2D scene over the already running 3D scene that might work better than having everything as UI? Thank you!

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 logicandchaos · Jun 24, 2021 at 12:52 AM 1
Share

I think doing it all in a UI canvas is the way to go.. however you can do the same thing all with sprite and either billboard them to face the camera or make them a child of the camera.. what issues do you have with using the canvas?

avatar image SirCrazyNugget · Jun 26, 2021 at 02:12 AM 0
Share

I'd create a hierarchy for 2D and 3D elements and have separate cameras too in each, then disable and enable these whole hierarchies as required.

Create a splash screen for transitions and your good to go.

3 Replies

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

Answer by spilat12 · Jun 26, 2021 at 06:15 PM

A 3D scene and a 2D scene have a single difference: camera perpective. What you are calling a "2D scene" is technically a 3D scene with ortographic camera. THAT IS ALL. There is no other differences. Unity is a 3D engine and even when you create a 2D game with it, it still has z-coordinate, no matter what you do. So just work as you did before, there's a handy 2D perpective button in the top of the scene view, use sprites. For the love of god, don't use canvas for it :-) You are just signing up for life of hell. Simply enable/disable your 3D objects and 2D object as you need them.

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 theratboy · Jul 04, 2021 at 04:51 AM 0
Share

Thank you for your answer! I'll avoid canvas then if you think that it will be more difficult in the long run.

avatar image
-2

Answer by warthos3399 · Jun 26, 2021 at 12:39 AM

I dont think thats possible, thats why Unity has seperate templates for 2d, 3d, and SRP's, because they are so different. Not saying it isnt possible, ive just never seen it done in Unity. 3D is much better, and less set up hassle. Another thing is performance, keeping a 3d scene running while you load/run a 2D, might cause alot of performance probs. Thats why games like Final Fantasy and the likes, use 3D.

I would just switch the camera's view differently when a battle starts (like more down to ground level, and a more 3D perspective), and return to top down view after battle ends.

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 Kyleighh · Jun 24, 2021 at 08:24 AM

I prefer 3D to 2D and still like 2D but 2D has a tendency to make my blood boil tbh

I think 3D is much more like a real fight and it's less oppressive with getting caught in the corner and combos in general. 3D seems to rely more heavily on mind-games, knowing when to attack, and having fast reflexes in general. Which also allows you to be more creative I think. I feel like 2D has more to do with memorization. Moves in 2D games are just too fast for your eyes to see to an extent and it relies more on button inputs. I never liked the idea of TODs, or just these combos that take 40% of your health away just cause they landed the first blow.

myaarpmedicare.com

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 theratboy · Jun 24, 2021 at 01:57 PM 0
Share

I appreciate the insight but this is more in regards to technically how to load a 2d scene over a 3d scene without unloading the 3d scene. Also I was going to have the battle be turn based probably but thanks for the reply!

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

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

Looking for a simple way to Add an Image or text to a 3d Model 1 Answer

UDP app signature? 1 Answer

2D Shadows? 3 Answers

Isometric game: 2D background mixing with 3D models 2 Answers

Drawing borders between an array of objects 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