{"id":31908,"date":"2024-11-01T09:04:07","date_gmt":"2024-11-01T09:04:07","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=31908"},"modified":"2024-11-01T11:34:12","modified_gmt":"2024-11-01T11:34:12","slug":"basic-unity-course-sky","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/31908\/","title":{"rendered":"Basic Unity Course: Sky"},"content":{"rendered":"<p><body><\/p>\n<p>Hello everyone! Today we will take a detailed look at how to create skies in Unity. The sky is one of the elements that greatly impacts the atmosphere of a game, and its implementation can change the overall feel of the game. In this article, we will explain various ways to set up and utilize the sky in Unity.<\/p>\n<h2>1. Understanding the Importance of the Sky<\/h2>\n<p>The sky is a crucial element that composes the background of the game. Properly setting up the sky can significantly enhance the theme and atmosphere of the game. For example, a clear blue sky can evoke positive emotions, whereas a dark, cloudy sky can create tension or anxiety. Therefore, when designing the sky, it&#8217;s important to consider the overall emotions and messages of the game.<\/p>\n<h2>2. Setting Up the Sky in Unity<\/h2>\n<p>Unity offers various ways to set up the sky. By default, you can use Unity&#8217;s Skybox, which allows for everything from simple effects to complex customizations.<\/p>\n<h3>2.1 Using Skybox<\/h3>\n<p>The Skybox is a cube map used in Unity to represent the sky. It requires five cubemap textures to implement a 360-degree sky. To use a Skybox, follow these steps:<\/p>\n<ol>\n<li>In the Unity Editor, click <strong>Window<\/strong> &gt; <strong>Rendering<\/strong> &gt; <strong>Lighting<\/strong>.<\/li>\n<li>In the Lighting panel, go to the <strong>Environment<\/strong> section and select <strong>Skybox Material<\/strong>.<\/li>\n<li>Select the desired Skybox or drag your custom Skybox into the Material slot.<\/li>\n<\/ol>\n<p>Unity provides several basic Skybox textures, so you can utilize those.<\/p>\n<h3>2.2 Setting Sky Color and Gradient<\/h3>\n<p>You can also represent the sky with simple colors or gradients instead of a Skybox. This method can yield simple yet effective results. To set the sky color:<\/p>\n<ol>\n<li>Select <strong>GameObject<\/strong> &gt; <strong>3D Object<\/strong> &gt; <strong>Quad<\/strong> in the Scene view to create a mesh that represents the sky.<\/li>\n<li>Create a new Material for the Quad, and set the <strong>Shader<\/strong> to <strong>Unlit<\/strong> or <strong>Unlit\/Texture<\/strong>.<\/li>\n<li>To create a gradient, edit a Texture or download a gradient texture from the Unity Asset Store.<\/li>\n<\/ol>\n<h2>3. Adding Animation Effects to the Sky<\/h2>\n<p>You can add animation effects to the sky for subtle changes. For example, if you want to create the effect of clouds moving or the sun rising, you can use the following methods.<\/p>\n<h3>3.1 Creating Realistic Cloud Animation<\/h3>\n<p>Adding moving clouds to the sky enhances the realism of the game. To do this, follow these steps:<\/p>\n<ol>\n<li>Create a cloud object using a cloud texture or particle system.<\/li>\n<li>Add an <strong>Animator<\/strong> to the cloud object and create an animation clip that moves the cloud in a specific direction.<\/li>\n<li>Loop this animation continuously to add realism.<\/li>\n<\/ol>\n<h3>3.2 Setting the Sun&#8217;s Movement<\/h3>\n<p>Use a Directional Light to represent the sun. Write a script to adjust the sun&#8217;s direction and angle according to the flow of the day. A simple C# script example is as follows:<\/p>\n<pre><code>\n    using UnityEngine;\n\n    public class SunMovement : MonoBehaviour\n    {\n        public float speed = 1.0f;\n        \n        void Update()\n        {\n            transform.Rotate(Vector3.right, speed * Time.deltaTime);\n        }\n    }\n    <\/code><\/pre>\n<h2>4. Setting the Sky in HDRP and URP<\/h2>\n<p>Unity offers the High Definition Render Pipeline (HDRP) and Universal Render Pipeline (URP) to support advanced graphics. The methods of setting the sky may vary slightly depending on each pipeline.<\/p>\n<h3>4.1 Setting the Sky in HDRP<\/h3>\n<p>In HDRP, you can achieve a more realistic sky through the Visual Environment settings. Follow these steps:<\/p>\n<ol>\n<li>Apply the HDRP Asset to your project.<\/li>\n<li>In the Lighting panel, select Environment Lighting and set <strong>Sky Type<\/strong> to <strong>HDRI Sky<\/strong>.<\/li>\n<li>Use differentiated HDRI textures to present a more diverse sky.<\/li>\n<\/ol>\n<h3>4.2 Setting the Sky in URP<\/h3>\n<p>In URP, you can implement the sky using Shader Graph. This allows for parameter adjustments and customization. You can define and combine gradients, clouds, and sun effects to realize various skies through Shader Graph.<\/p>\n<h2>5. Sky and Weather Systems<\/h2>\n<p>In addition to sky setup, implementing a weather system can greatly enhance the immersion of the game. This allows for a more diverse experience of the environment.<\/p>\n<h3>5.1 Implementing Weather Changes<\/h3>\n<p>By creating a weather system, you can represent various climates. For example, if you want to create rainy weather, you will need the following elements:<\/p>\n<ol>\n<li>Use a rain texture and implement it with a particle system to set up the rain effect.<\/li>\n<li>Change the sky color to represent cloudy weather.<\/li>\n<li>Use C# scripts to automatically switch between weather changes periodically or based on specific events.<\/li>\n<\/ol>\n<h2>6. Optimization and Tips<\/h2>\n<p>When implementing sky and weather effects, performance considerations are crucial. Here are a few tips for optimization.<\/p>\n<ol>\n<li><strong>Optimizing Particle Systems:<\/strong> Minimize unnecessary parameters and experiment for optimal settings.<\/li>\n<li><strong>Background Texture Size:<\/strong> While using high-resolution textures is good, keep an appropriate level to manage VRAM usage.<\/li>\n<li><strong>LOD (Level of Detail):<\/strong> Improve performance for the sky and distant backgrounds through the LOD system.<\/li>\n<\/ol>\n<h2>Conclusion<\/h2>\n<p>Setting the sky is a deep element beyond just a simple background. Utilize the various features provided by Unity to unleash your creativity and implement unique skies. Also, don&#8217;t forget to enhance the immersion of your game through a weather system.<\/p>\n<p>I hope today&#8217;s tutorial has been helpful for your Unity development. Add a beautiful sky to your game and enjoy the process!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone! Today we will take a detailed look at how to create skies in Unity. The sky is one of the elements that greatly impacts the atmosphere of a game, and its implementation can change the overall feel of the game. In this article, we will explain various ways to set up and utilize &hellip; <a href=\"https:\/\/atmokpo.com\/w\/31908\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Basic Unity Course: Sky&#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-31908","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>Basic Unity Course: Sky - \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\/31908\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic Unity Course: Sky - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Hello everyone! Today we will take a detailed look at how to create skies in Unity. The sky is one of the elements that greatly impacts the atmosphere of a game, and its implementation can change the overall feel of the game. In this article, we will explain various ways to set up and utilize &hellip; \ub354 \ubcf4\uae30 &quot;Basic Unity Course: Sky&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/31908\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T09:04:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-01T11:34:12+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\/31908\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31908\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Basic Unity Course: Sky\",\"datePublished\":\"2024-11-01T09:04:07+00:00\",\"dateModified\":\"2024-11-01T11:34:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31908\/\"},\"wordCount\":828,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Unity Basic\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/31908\/\",\"url\":\"https:\/\/atmokpo.com\/w\/31908\/\",\"name\":\"Basic Unity Course: Sky - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T09:04:07+00:00\",\"dateModified\":\"2024-11-01T11:34:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31908\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/31908\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/31908\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic Unity Course: Sky\"}]},{\"@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":"Basic Unity Course: Sky - \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\/31908\/","og_locale":"ko_KR","og_type":"article","og_title":"Basic Unity Course: Sky - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Hello everyone! Today we will take a detailed look at how to create skies in Unity. The sky is one of the elements that greatly impacts the atmosphere of a game, and its implementation can change the overall feel of the game. In this article, we will explain various ways to set up and utilize &hellip; \ub354 \ubcf4\uae30 \"Basic Unity Course: Sky\"","og_url":"https:\/\/atmokpo.com\/w\/31908\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T09:04:07+00:00","article_modified_time":"2024-11-01T11:34:12+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\/31908\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/31908\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Basic Unity Course: Sky","datePublished":"2024-11-01T09:04:07+00:00","dateModified":"2024-11-01T11:34:12+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/31908\/"},"wordCount":828,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Unity Basic"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/31908\/","url":"https:\/\/atmokpo.com\/w\/31908\/","name":"Basic Unity Course: Sky - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T09:04:07+00:00","dateModified":"2024-11-01T11:34:12+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/31908\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/31908\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/31908\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Basic Unity Course: Sky"}]},{"@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\/31908","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=31908"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31908\/revisions"}],"predecessor-version":[{"id":31909,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31908\/revisions\/31909"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=31908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=31908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=31908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}