{"id":37949,"date":"2024-11-01T10:01:45","date_gmt":"2024-11-01T10:01:45","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=37949"},"modified":"2024-11-01T11:33:01","modified_gmt":"2024-11-01T11:33:01","slug":"unity-2d-game-development-the-start-of-unity-2d-game-development-installing-unity-project-setup-getting-familiar-with-the-basic-interface","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/37949\/","title":{"rendered":"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface."},"content":{"rendered":"<p><body><\/p>\n<h2>1. Install Unity<\/h2>\n<p>Unity is a powerful game engine that is suitable for 2D and 3D game development. To install Unity, you must follow these steps.<\/p>\n<h3>1.1. Download Unity Hub<\/h3>\n<p>To begin the installation of Unity, first download Unity Hub from the <a href=\"https:\/\/unity.com\/download\" target=\"_blank\" rel=\"noopener\">official Unity website<\/a>. Unity Hub is a program that allows you to manage multiple versions of the Unity Editor.<\/p>\n<h3>1.2. Install Unity Hub<\/h3>\n<p>Run the downloaded installer to install Unity Hub. Once the installation is complete, launch Unity Hub.<\/p>\n<h3>1.3. Install Unity Editor<\/h3>\n<p>Click on the &#8220;Installs&#8221; menu in Unity Hub, then click the &#8220;Add&#8221; button to select the desired version of Unity. It is generally advisable to choose the latest version. Additionally, you can select and install modules related to your platform.<\/p>\n<h2>2. Project Setup<\/h2>\n<p>After installing the Unity Editor, create a new project. This is the first step in game development.<\/p>\n<h3>2.1. Create New Project<\/h3>\n<p>Select the &#8220;Projects&#8221; menu in Unity Hub and then click the &#8220;New&#8221; button. Choose &#8220;2D&#8221; from the project template. Specify the project&#8217;s name and save location. Once all settings are complete, click the &#8220;Create&#8221; button.<\/p>\n<h3>2.2. Change Project Settings<\/h3>\n<p>Once the project is created, the default settings will be applied. However, you may need to adjust the settings to meet specific requirements. For example, you can go to <strong>Edit &gt; Project Settings<\/strong> to check and adjust various options.<\/p>\n<h2>3. Learn the Basic Interface<\/h2>\n<p>The Unity interface consists of several panels. Understanding the functions of each of these panels is a crucial part of game development.<\/p>\n<h3>3.1. Scene View<\/h3>\n<p>In the Scene View, you can visually place and adjust game objects. You can set properties such as size, position, and rotation, and when developing 2D games, you primarily use 2D mode.<\/p>\n<h3>3.2. Game View<\/h3>\n<p>The Game View is a panel that shows what the actual game will look like. You can check the results in this view when running the game.<\/p>\n<h3>3.3. Hierarchy Panel<\/h3>\n<p>The Hierarchy panel lists all game objects currently in the scene. You can select an object to modify its properties or adjust the hierarchy relationships.<\/p>\n<h3>3.4. Inspector Panel<\/h3>\n<p>The Inspector panel displays the properties of the selected object. Here, you can adjust the transform component, sprite renderer, physics engine settings, and more.<\/p>\n<h3>3.5. Project Panel<\/h3>\n<p>The Project panel is where you manage files and assets. You can position and manage all assets (images, audio files, scripts, etc.) used in the game.<\/p>\n<h3>3.6. Console Panel<\/h3>\n<p>The Console panel is a space for outputting debugging information. It provides error messages, warnings, and log messages. You can find important information here when writing scripts.<\/p>\n<h2>4. Creating Your First 2D Game<\/h2>\n<p>Now that you&#8217;ve learned the basics of using Unity, let&#8217;s create a simple 2D game. This game will consist of a sprite that jumps.<\/p>\n<h3>4.1. Importing Sprites<\/h3>\n<p>Drag the sprites you will use in the game into the Project panel. Each sprite should be in JPEG or PNG format.<\/p>\n<h3>4.2. Adding a Sprite<\/h3>\n<p>Right-click in the Hierarchy panel and select <strong>2D Object &gt; Sprite<\/strong> to add a new sprite. Rename the created sprite to &#8220;Player.&#8221;<\/p>\n<h3>4.3. Applying an Image to the Sprite<\/h3>\n<p>Select the Player sprite and find the <strong>Sprite Renderer<\/strong> component in the Inspector panel. Drag the imported sprite into the <strong>Sprite<\/strong> property of that component.<\/p>\n<h3>4.4. Adding Physics Settings<\/h3>\n<p>To add physics effects to the Player sprite, click the <strong>Add Component<\/strong> button in the Inspector panel and select <strong>Physics2D &gt; Rigidbody2D<\/strong>. Set the gravity and physics properties here.<\/p>\n<h2>5. Writing Scripts<\/h2>\n<p>Let&#8217;s write a script that defines the game&#8217;s behavior. We&#8217;ll add a simple jump functionality.<\/p>\n<h3>5.1. Creating a Script<\/h3>\n<p>Right-click in the Project panel and select <strong>Create &gt; C# Script<\/strong>. Set the script&#8217;s name to &#8220;PlayerController.&#8221; Select the created script and open it in the code editor to write your code.<\/p>\n<h3>5.2. Writing the Code<\/h3>\n<p>Write the following code in the PlayerController.cs file:<\/p>\n<pre class=\"example-code\">\n    using UnityEngine;\n\n    public class PlayerController : MonoBehaviour\n    {\n        public float jumpForce = 10f;\n        private Rigidbody2D rb;\n\n        void Start()\n        {\n            rb = GetComponent<rigidbody2d>();\n        }\n\n        void Update()\n        {\n            if (Input.GetKeyDown(KeyCode.Space))\n            {\n                rb.velocity = Vector2.up * jumpForce;\n            }\n        }\n    }\n    <\/rigidbody2d><\/pre>\n<h3>5.3. Adding the Script<\/h3>\n<p>Select the Player sprite, then click <strong>Add Component<\/strong> in the Inspector panel and add <strong>Scripts &gt; PlayerController<\/strong>.<\/p>\n<h2>6. Testing and Modifying<\/h2>\n<p>Now that all settings are complete, click the <strong>Play<\/strong> button at the top to run the game. The Player sprite should jump. If the jump functionality is not working, check for any necessary modifications in the code and review the physics settings to ensure they are appropriate.<\/p>\n<h2>7. Conclusion<\/h2>\n<p>You have now learned the basic setup of a simple 2D game. Unity is a powerful and flexible tool, and you have gained foundational knowledge to create your first 2D game through this tutorial. If you wish to expand the game&#8217;s features further, refer to various Unity documents and tutorials for more in-depth learning.<\/p>\n<h2>References<\/h2>\n<ul>\n<li><a href=\"https:\/\/unity.com\/learn\" target=\"_blank\" rel=\"noopener\">Unity Learn<\/a><\/li>\n<li><a href=\"https:\/\/docs.unity3d.com\/Manual\/index.html\" target=\"_blank\" rel=\"noopener\">Unity Manual<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Install Unity Unity is a powerful game engine that is suitable for 2D and 3D game development. To install Unity, you must follow these steps. 1.1. Download Unity Hub To begin the installation of Unity, first download Unity Hub from the official Unity website. Unity Hub is a program that allows you to manage &hellip; <a href=\"https:\/\/atmokpo.com\/w\/37949\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[135],"tags":[],"class_list":["post-37949","post","type-post","status-publish","format-standard","hentry","category-unity-basic"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface. - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/37949\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface. - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. Install Unity Unity is a powerful game engine that is suitable for 2D and 3D game development. To install Unity, you must follow these steps. 1.1. Download Unity Hub To begin the installation of Unity, first download Unity Hub from the official Unity website. Unity Hub is a program that allows you to manage &hellip; \ub354 \ubcf4\uae30 &quot;Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface.&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/37949\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T10:01:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:33:01+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/37949\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/37949\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface.\",\"datePublished\":\"2024-11-01T10:01:45+00:00\",\"dateModified\":\"2024-11-01T11:33:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/37949\/\"},\"wordCount\":785,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Unity Basic\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/37949\/\",\"url\":\"https:\/\/atmokpo.com\/w\/37949\/\",\"name\":\"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface. - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T10:01:45+00:00\",\"dateModified\":\"2024-11-01T11:33:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/37949\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/37949\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/37949\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface. - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/37949\/","og_locale":"ko_KR","og_type":"article","og_title":"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface. - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. Install Unity Unity is a powerful game engine that is suitable for 2D and 3D game development. To install Unity, you must follow these steps. 1.1. Download Unity Hub To begin the installation of Unity, first download Unity Hub from the official Unity website. Unity Hub is a program that allows you to manage &hellip; \ub354 \ubcf4\uae30 \"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface.\"","og_url":"https:\/\/atmokpo.com\/w\/37949\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T10:01:45+00:00","article_modified_time":"2024-11-01T11:33:01+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/37949\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/37949\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface.","datePublished":"2024-11-01T10:01:45+00:00","dateModified":"2024-11-01T11:33:01+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/37949\/"},"wordCount":785,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Unity Basic"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/37949\/","url":"https:\/\/atmokpo.com\/w\/37949\/","name":"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface. - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T10:01:45+00:00","dateModified":"2024-11-01T11:33:01+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/37949\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/37949\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/37949\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Unity 2D Game Development, The Start of Unity 2D Game Development, Installing Unity, Project Setup, Getting Familiar with the Basic Interface."}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/37949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=37949"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/37949\/revisions"}],"predecessor-version":[{"id":37950,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/37949\/revisions\/37950"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=37949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=37949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=37949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}