EDUCBA

EDUCBA

MENUMENU
  • Explore
    • Lifetime Membership
    • All in One Bundles
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Login
Home Design Design Tutorials Design Basic Tutorial Unity 2D

Unity 2D

Updated May 19, 2023

Unity 2D

Overview of Unity 2D

Unity is 2d can be understood as 2d game creation and development in Unity. 2d games are 2-dimensional games, meaning they have variables of their object in two directions, such as X and Y plans. Moreover, one can animate the designed player and other assets of the game in two directions to give them proper movement, jump, and other physical activity. Unity has its separate 2D interface, which is designed to make 2d game creation and development easy. You have to choose a 2D interface while creating a new project, or you can switch to 2d by clicking on the 2d button at any time during your game creation.

ADVERTISEMENT
Popular Course in this category
UNITY Course Bundle - 26 Courses in 1 | 5 Mock Tests

Start Your Free Design Course

3D animation, modelling, simulation, game development & others

Introduction to Unity 2D

Unity 2D games are part of Unity software, which means Unity game is not just famous for 3D games, but we can also create 2D games in it. When we start creating games in Unity, it offers us to create our games in 2D or 3D mode. In 2D games, Sprites are simple objects that deal with graphical images, and while working on 2D games in Unity, we must have a 2D interface selected. We can manage several things in Unity to develop our 2D games, such as making graphical objects as box colloidal, making objects rigid bodies for animating them, and so on.

Now let us start discussing how we can create 2D games in Unity step-by-step. First of all, when you start Unity, you will have this user interface, and for creating a new project, click on the New Project button, which is on the right side of this welcome window.

Unity 2D 1

In the Create New Project dialog box, the select interface as 2D by clicking on the 2D option. Now click on the Create project button at the bottom right corner.

Unity 2D 2

Once you click on create button, this 2D interface will be open.

Unity 2D 3

If you are in the Game interface, you will not be able to see the camera.

Unity 2D 4

And if the 2D interface is disabled then it will change into a 3D mode which will create problems for you in creating a 2D game so make sure you are in 2D mode.

Unity 2D 5

Before you start creating a 2D game, go to the Assets folder, which is in the lower-left corner of the user interface. Make right-click on it and create a new folder.

Unity 2D 6

I will name this folder Level.

Unity 2D 7

Same as you can create more folders for better asset management of your 2D game.

Unity 2D 8

Now go to the Create button of this software’s Hierarchy section and click on it, or you can right-click in the Hierarchy section. In the drop-down list, go to 2D object, then Sprites, and then choose your desired shape for your Sprites object. For this time, I will choose Square.

Unity 2D 9

Once we choose it, a player of this chosen square will come into the Hierarchy section. Now I will name it Player.

Unity 2D 10

Now click on the radio button of the Sprite option of this Player object. You will find this option in the Inspector section. Once you click, you will have the Select Sprite dialog box open. Choose your desired shape from here by clicking on your desired one.

Unity 2D 11

You can also see your external graphics here. So to have a graphical asset for this, I will choose this image from its saved folder. You can use your desired image for this purpose.

kjk

Now you can assign your imported image to the Player object.

lkj

If it is not visible to you, zoom the area to see your object.

nh

You can scale it as per requirement by the scale options in the Transform section of the selected object. Such as, if I change its X value, then it will change like this.

hty

If you want, you can check how your selected object will look in your created game scene by going to the Game tab of this software.

image 1

Now I will go to the Hierarchy section and select the Player layer, then press Ctrl + D to make a copy of it and name it as Floor.

image 2

Here I will scale it in the X direction to make this type of floor area for the player.

image 3

To add a 2D variable to the object, follow these steps:

  1. Select the object.
  2. Go to the Inspector section.
  3. Click on the Add Component button.
  4. Search for “Box Collider 2D” in the component search bar.

image 4

Now do the same for the Floor object in the same way.

image 5

For adding animation to our player object, search for Rigidbody 2d in the same Add Component button after selecting the Player layer.

image 6

You can see what will happen by playing the animation. Click on the play button to see the animation, and make sure you again click on the play button to stop the animation; otherwise, the animation will not save. In the same way, you can add more animation functions to the player. This was basic information about how you can create 2d games in Unity.

image 7

Unity 2D Platform

Now let me tell you about what a 2D platform is in Unity. First, there is an asset store offered by Unity to make our 2D game development easy. Through Asset Store, we can import many pre-designed assets of 2D games.

For Assets, the store goes to the Window menu of the menu bar, then chooses the Search option, and then clicks on the Asset Store option in the drop-down list.

yui

Once you choose this option, Asset Store will open like this. In the search box, you can search for your desired assets, such as for 2D platform assets; search here for 2D platform in the s

kuity

And it will give you results as per your search. Here you will find both paid and free assets. So, according to your requirement, you can go with anyone by applying a filter for your result. You can choose your desired 2D platform asset by clicking on the template of it. Once you click, it will redirect you to the Assets store page of the Unity website.

Here you can click on Add to My Assets option to add your desired assets.

image 1

Once it gets added, you can go with the Open in Unity or Go to My Assets option and work with it.

Image

These were some important facts about 2d games creation and development in Unity software.

Conclusion

After going through this article, you have good information about 2d Unity games and an idea about how you can create 2d games in it. You can go with the Asset store for having a preset of a 2d game platform to make your 2d game development easy. There is a free 2d platform, so you can try it for free before going for a paid one.

Recommended Articles

This is a guide to Unity 2D. Here we discuss the Introduction, overview, Unity 2D platform, and how to create the Unity platform, respectively. You may also have a look at the following articles to learn more –

  1. Keras conv2D
  2. SketchUp 2D
  3. PyTorch MaxPool2d
  4. 2D Array Sorting in Java
ADVERTISEMENT
SOLIDWORKS Course Bundle - 7 Courses in 1 | 3 Mock Tests
20+ Hours of HD Videos
7 Courses
3 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.5
ADVERTISEMENT
CorelDRAW Course Bundle - 6 Courses in 1
38+ Hours of HD Videos
6 Courses
Verifiable Certificate of Completion
Lifetime Access
4.5
ADVERTISEMENT
ADOBE PHOTOSHOP Course Bundle - 21 Courses in 1 | 3 Mock Tests
87+ Hours of HD Videos
21 Courses
3 Mock Tests & Quizzes
Verifiable Certificate of Completion
Lifetime Access
4.9
ADVERTISEMENT
UNREAL ENGINE Course Bundle - 18 Courses in 1
164+ Hours of HD Videos
18 Courses
Verifiable Certificate of Completion
Lifetime Access
4.8
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Photoshop Tutorial
  • 3ds Max Tutorial
  • All Tutorials
Certification Courses
  • All Courses
  • Design Course - All in One Bundle
  • Photoshop Course
  • Maya Course
  • Unreal Engine Course
  • Unity Course
  • DaVinci Resolve Course
  • Pro Tools Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Design Course

3D animation, modelling, simulation, game development & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

🚀 Extended Cyber Monday Price Drop! All in One Universal Bundle (3700+ Courses) @ 🎁 90% OFF - Ends in ENROLL NOW