{"id":31892,"date":"2024-11-01T09:03:54","date_gmt":"2024-11-01T09:03:54","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=31892"},"modified":"2024-11-01T11:34:15","modified_gmt":"2024-11-01T11:34:15","slug":"unity-basics-course-creating-a-player-character","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/31892\/","title":{"rendered":"Unity Basics Course: Creating a Player Character"},"content":{"rendered":"<p>Unity is a powerful game development platform that provides tools and features to create games of various genres. In this tutorial, we will learn how to create a player character using Unity. This article will cover modeling, animation, physics, and character controller setup in detail.<\/p>\n<h2>1. Installing and Setting Up Unity<\/h2>\n<p>To use Unity, you first need to install Unity Hub and download the latest version of the Unity Editor. Follow these steps:<\/p>\n<ul>\n<li>Visit the official Unity website to download Unity Hub.<\/li>\n<li>Once the installation is complete, launch Unity Hub.<\/li>\n<li>Click the &#8216;New Project&#8217; button in Unity Hub to create a new project.<\/li>\n<li>Select either a 2D or 3D project, set the project name and path, and then click the &#8216;Create&#8217; button.<\/li>\n<\/ul>\n<h2>2. Character Modeling<\/h2>\n<p>The first step to creating a player character is to make a 3D model. This can be done using 3D modeling software like Blender.<\/p>\n<h3>2.1. Modeling in Blender<\/h3>\n<ol>\n<li>Open Blender, delete the default cube, and add a new mesh object.<\/li>\n<li>Choose the appropriate shape based on your modeling style, and edit the vertex, edge, and face to create the character\u2019s shape.<\/li>\n<li>Select the areas to apply textures through UV mapping.<\/li>\n<li>Finally, export the model in FBX format for use in Unity.<\/li>\n<\/ol>\n<h2>3. Importing the Character into Unity<\/h2>\n<p>Once modeling is complete, you need to return to Unity and import the model.<\/p>\n<ol>\n<li>Drag and drop the FBX file into the &#8216;Assets&#8217; panel of the Unity Editor.<\/li>\n<li>Drag the imported model into the scene to position it.<\/li>\n<li>Adjust the scale and rotation values of the model to place it correctly.<\/li>\n<\/ol>\n<h2>4. Setting Up Animations<\/h2>\n<p>To bring the player character to life, you need to add animations. You can set up animations using the Animator in Unity.<\/p>\n<h3>4.1. Creating Animation Clips<\/h3>\n<ol>\n<li>Click on the character model and go to the &#8216;Animation&#8217; tab.<\/li>\n<li>Click the &#8216;Create&#8217; button to generate a new animation clip.<\/li>\n<li>Adjust the position of the character\u2019s arms, legs, etc., to create various poses for recording the animation.<\/li>\n<li>Add keyframes to complete the animation.<\/li>\n<\/ol>\n<h3>4.2. Setting Up the Animator<\/h3>\n<ol>\n<li>Select the character model, then add the &#8216;Animator&#8217; component.<\/li>\n<li>Add animation clips in the Animator window and set up transition states.<\/li>\n<li>Establish conditions for animation transitions based on variables to create smooth animations.<\/li>\n<\/ol>\n<h2>5. Setting Up the Character Controller<\/h2>\n<p>To make the character responsive to input, you need to set up a character controller. You can control character movement using Unity&#8217;s Character Controller.<\/p>\n<h3>5.1. Adding a Character Controller<\/h3>\n<ol>\n<li>Add a &#8216;Character Controller&#8217; component to the game object.<\/li>\n<li>Set the character&#8217;s bounds to adjust physical properties.<\/li>\n<li>Use Capsule Collider to implement collision detection.<\/li>\n<\/ol>\n<h3>5.2. Writing Scripts<\/h3>\n<p>To allow the character to respond to inputs, you will write a C# script. Below is an example of a basic movement script.<\/p>\n<pre><code>\nusing UnityEngine;\n\npublic class PlayerController : MonoBehaviour\n{\n    public float speed = 5f;\n    private CharacterController controller;\n\n    void Start()\n    {\n        controller = GetComponent<CharacterController>();\n    }\n\n    void Update()\n    {\n        float horizontal = Input.GetAxis(\"Horizontal\");\n        float vertical = Input.GetAxis(\"Vertical\");\n\n        Vector3 move = transform.right * horizontal + transform.forward * vertical;\n        controller.Move(move * speed * Time.deltaTime);\n    }\n}\n<\/code><\/pre>\n<h2>6. Completing the Player Character<\/h2>\n<p>Now that all settings and scripts are complete, let\u2019s test the player character.<\/p>\n<ol>\n<li>Save the scene and click the &#8216;Play&#8217; button to run the game.<\/li>\n<li>Use the WASD keys to move the character.<\/li>\n<li>Check if the movement is smooth, and modify the scripts as necessary to improve it.<\/li>\n<\/ol>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we learned how to create a player character using Unity. We gained foundational knowledge in character creation through various processes, including modeling, animation, and controller setup. It is recommended to master these foundational skills to create more complex and diverse games in the future.<\/p>\n<h2>Appendix<\/h2>\n<h3>Reference Resources<\/h3>\n<ul>\n<li><a href=\"https:\/\/unity.com\/\">Official Unity Website<\/a><\/li>\n<li><a href=\"https:\/\/www.blender.org\/\">Official Blender Website<\/a><\/li>\n<li><a href=\"https:\/\/learn.unity.com\/\">Unity Learn Platform<\/a><\/li>\n<\/ul>\n<h3>Additional Learning Materials<\/h3>\n<p>If you wish to delve deeper into learning, consider referring to the following materials:<\/p>\n<ul>\n<li>Official documentation and tutorials for Unity<\/li>\n<li>Watch various game development courses on YouTube channels<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Unity is a powerful game development platform that provides tools and features to create games of various genres. In this tutorial, we will learn how to create a player character using Unity. This article will cover modeling, animation, physics, and character controller setup in detail. 1. Installing and Setting Up Unity To use Unity, you &hellip; <a href=\"https:\/\/atmokpo.com\/w\/31892\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Unity Basics Course: Creating a Player Character&#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-31892","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 Basics Course: Creating a Player Character - \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\/31892\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unity Basics Course: Creating a Player Character - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Unity is a powerful game development platform that provides tools and features to create games of various genres. In this tutorial, we will learn how to create a player character using Unity. This article will cover modeling, animation, physics, and character controller setup in detail. 1. Installing and Setting Up Unity To use Unity, you &hellip; \ub354 \ubcf4\uae30 &quot;Unity Basics Course: Creating a Player Character&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/31892\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:03:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:34:15+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=\"3\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/31892\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31892\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Unity Basics Course: Creating a Player Character\",\"datePublished\":\"2024-11-01T09:03:54+00:00\",\"dateModified\":\"2024-11-01T11:34:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31892\/\"},\"wordCount\":605,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Unity Basic\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/31892\/\",\"url\":\"https:\/\/atmokpo.com\/w\/31892\/\",\"name\":\"Unity Basics Course: Creating a Player Character - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:03:54+00:00\",\"dateModified\":\"2024-11-01T11:34:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31892\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/31892\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/31892\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unity Basics Course: Creating a Player Character\"}]},{\"@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 Basics Course: Creating a Player Character - \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\/31892\/","og_locale":"ko_KR","og_type":"article","og_title":"Unity Basics Course: Creating a Player Character - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Unity is a powerful game development platform that provides tools and features to create games of various genres. In this tutorial, we will learn how to create a player character using Unity. This article will cover modeling, animation, physics, and character controller setup in detail. 1. Installing and Setting Up Unity To use Unity, you &hellip; \ub354 \ubcf4\uae30 \"Unity Basics Course: Creating a Player Character\"","og_url":"https:\/\/atmokpo.com\/w\/31892\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:03:54+00:00","article_modified_time":"2024-11-01T11:34:15+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":"3\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/31892\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/31892\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Unity Basics Course: Creating a Player Character","datePublished":"2024-11-01T09:03:54+00:00","dateModified":"2024-11-01T11:34:15+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/31892\/"},"wordCount":605,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Unity Basic"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/31892\/","url":"https:\/\/atmokpo.com\/w\/31892\/","name":"Unity Basics Course: Creating a Player Character - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:03:54+00:00","dateModified":"2024-11-01T11:34:15+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/31892\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/31892\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/31892\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Unity Basics Course: Creating a Player Character"}]},{"@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\/31892","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=31892"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31892\/revisions"}],"predecessor-version":[{"id":31893,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31892\/revisions\/31893"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=31892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=31892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=31892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}