{"id":360,"date":"2018-11-13T23:55:54","date_gmt":"2018-11-13T14:55:54","guid":{"rendered":"http:\/\/reasty.net\/?p=360"},"modified":"2018-11-13T23:55:54","modified_gmt":"2018-11-13T14:55:54","slug":"unity-overview","status":"publish","type":"post","link":"https:\/\/reasty.net\/?p=360","title":{"rendered":"Unity Overview &#8211; Unity basic parts (1)"},"content":{"rendered":"<p>\uac04\ub9cc\uc5d0 \ud3ec\uc2a4\ud305. \uac04\ub9cc\uc5d0 \uc0c8\ub85c\uc6b4 \ubb34\uc5b8\uac00\ub97c \ud560 \uae30\ud68c\uac00 \uc788\uae30 \ub54c\ubb38\uc774\ub2e4.<br \/>\n\ubc14\ub85c <strong>Unity<\/strong> \uac00 \uadf8\uac83! \ud68c\uc0ac\uc5d0\uc11c \ub0b4\ub144\uc5d0 Unity\ub85c \ubb34\uc5b8\uac00 \ud504\ub85c\uc81d\ud2b8\ub97c \ud560 \uac70\ub780\ub2e4. \ud3c9\uc18c \uad00\uc2ec\uc788\ub358\uac70\ub77c \uc7bd\uc2f8\uac8c \uad50\uc721\uc2e0\uccad\ud588\ub2e4.<\/p>\n<p>\uc720\ub2c8\ud2f0 \ub7ec\ub2dd \uc13c\ud130(<a href=\"http:\/\/www.svvr.academy\" target=\"_blank\" rel=\"noopener\">SVVR<\/a>)\uc5d0\uc11c \uc9c4\ud589\ud558\ub294 &#8216;Unity2017\uc744 \ud65c\uc6a9\ud55c 2D\/3D \uac8c\uc784 \uac1c\ubc1c(\ucd08\uae09)&#8217; \uac15\uc758\ub97c \ub4e4\uc73c\uba70 \uacf5\ubd80\ud55c \ub0b4\uc6a9\uc744 \uc815\ub9ac\ud558\uace0\uc790 \ud55c\ub2e4.<\/p>\n<p>\uad50\uc721 \uccab\uc9f8\ub0a0, \uac15\uc0ac \ubcf8\uc778\uc758 \uc9e7\uc740 \uc18c\uac1c\uc640 \ud568\uaed8 \uac15\uc758\uac00 \uc2dc\uc791\ub418\uc5c8\ub2e4. \uc7ac\ubbfc \uac15\uc0ac\ub2d8 \uc774\uc5c8\ub358\uac00..\uae30\uc5b5\uc774&#8230;(\uc8c4\uc1a1;;)<\/p>\n<p>\ud234\uc758 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\ubc95 \uc775\ud798\uc744 \uc704\ud558\uc5ec \ubc14\ub85c \uc2e4\uc2b5\uc774 \uc9c4\ud589\ub418\uc5c8\ub2e4.<\/p>\n<p>\ub099\ud558\ud558\ub294 Cube\ub97c \uad6c\ud604\ud574\ubcf4\uc558\ub2e4.<br \/>\n&#8216;Hierarchy&#8217; \uba54\ub274\uc5d0\uc11c &#8216;Create&#8217; &#8211; &#8216;3D Object&#8217; &#8211; &#8216;Cube&#8217;\ub97c \uc120\ud0dd\ud558\uc5ec Scene\uc5d0 &#8216;3D Cube&#8217;\ub97c \ucd94\uac00\ud558\uc600\ub2e4.<br \/>\n<del>(\ud5d0, \uc774\uac8c \ub2e4\uc57c? C# WPF\ub85c \uad6c\ud604\ud558\ub824\uba74&#8230;..\u314e\u3137\u3137)<\/del>\u00a04\ubc88\uc758 \ud074\ub9ad\uc73c\ub85c 3D Cube\ub97c \uc0dd\uc131\ud558\ub2e4\ub2c8! Awesome!<br \/>\n(\uc5ec\ub2f4\uc774\uc9c0\ub9cc Unity\uc5d0\uc11c unit \uc774\ub780 \ub2e8\uc704\uac00 \uc55e\uc5d0\uc11c \uc0dd\uc131\ud55c 3D Cube\uc758 \ud55c\ubcc0\uc758 \uae38\uc774\ub77c\uace0 \ud55c\ub2e4.)<\/p>\n<p>3D Cube\uac00 \ub545\uc5d0 \ub5a8\uc5b4\uc9c0\ub824\uba74? 3D Cube\uac00 \uc788\uc73c\ub2c8, \uc774\uc81c \ub545\uc744 \ub9cc\ub4e4\uc790!<br \/>\n&#8216;Hierarchy&#8217; \uba54\ub274\uc5d0\uc11c &#8216;Create&#8217; &#8211; &#8216;3D Object&#8217; &#8211; &#8216;Plane&#8217;\ub97c \uc120\ud0dd\ud558\uc5ec Scene\uc5d0 &#8216;Plane&#8217;\ub97c \ucd94\uac00\ud55c\ub2e4.<br \/>\n3D Cube\uac00 \ubc18\ucbe4 \ubc14\ub2e5\uc5d0 \ud30c\ubb3b\ud78c \uc0c1\ud0dc\uac00 \ub420\uac83\uc774\ub2e4.<br \/>\n(Object\ub97c \ucd94\uac00\ud588\uc744\ub54c \ud56d\uc0c1 &#8216;Inspector&#8217;\uba54\ub274\uc5d0\uc11c Transform\uc774 \ucd08\uae30\uac12\uc778\uc9c0 \ud655\uc778\ud558\uc790.)<\/p>\n<p>\uc774\uc81c 3D Cube\uc758 Y \uac12\uc744 \uc870\uc808\ud558\uc5ec \ubc14\ub2e5\uc5d0\uc11c \ub5a8\uc5b4\ud2b8\ub9ac\uc790. &#8216;Scene&#8217;\ud654\uba74\uc5d0\uc11c Cube\ub97c \uc120\ud0dd\ud558\uba74 \uc5f0\ub450\uc0c9(Y), \ube68\uac04\uc0c9(X), \ud30c\ub780\uc0c9(Z) \ucd95\uc758 \uac12\uc744 \uc124\uc815\ud560 \uc218\uc788\ub294 \ud654\uc0b4\ud45c\uac00 \uc0dd\uae34\ub2e4. \uc5f0\ub450\uc0c9(Y)\ud654\uc0b4\ud45c\ub97c \ud074\ub9ad\ud558\uace0 \uc704\ub85c \ucb49~\ub561\uae30\uba74 \ubc14\ub2e5\uc5d0\uc11c \uc810\uc810 \uba40\uc5b4\uc9c4\ub2e4. \ub2f9\uc5f0\ud788 \uc544\ub798\ub85c \ucb49~\ub561\uae30\uba74 \uc810\uc810 \uac00\ub77c \uc549\ub294\ub2e4. &#8216;Inspector&#8217; &#8211; &#8216;Transform&#8217;\uba54\ub274\uc5d0\uc11c Position Y \uac12\uc774 \ubcc0\uacbd\ub418\ub294\uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4. Y \uac12\uc744 5\uc815\ub3c4\ub85c \uc124\uc815\ud558\uc790.<\/p>\n<div id=\"attachment_361\" style=\"width: 635px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-361\" class=\"wp-image-361 size-large\" src=\"http:\/\/192.168.10.240:8080\/wp-content\/uploads\/2018\/11\/3D_cube-1024x555.png\" alt=\"3D Cube\" width=\"625\" height=\"339\" srcset=\"https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/3D_cube-1024x555.png 1024w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/3D_cube-300x163.png 300w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/3D_cube-768x416.png 768w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/3D_cube-1536x832.png 1536w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/3D_cube.png 1920w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><p id=\"caption-attachment-361\" class=\"wp-caption-text\">3D Cube<\/p><\/div>\n<p>\uc774\uc81c \ud654\uba74 \uc911\uc559\uc5d0 \uc788\ub294 Play \ubc84\ud2bc (\u25b6)\uc744 \ud074\ub9ad\ud558\uba74&#8230; \uc544\ubb34 \ubcc0\ud654\uac00 \uc5c6\uc744\uac83\uc774\ub2e4. (\u314b\u314b\u314b\uc65c\ud588\ub2c8)<br \/>\n\uc774 Cube\uc5d0 \uc0dd\uba85\ub825(?)\uc744 \uc8fc\ub824\uba74 Rigidbody \ucef4\ud3ec\ub10c\ud2b8\ub97c \ucd94\uac00\ud55c\ub2e4.<br \/>\n&#8216;Inspector&#8217; \uba54\ub274 \ub9e8 \ubc11\uc5d0 \uc788\ub294 Add Component \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uace0 &#8216;Physics&#8217; &#8211;\u00a0&#8216;Rigidbody&#8217; \ub97c \ud074\ub9ad\ud55c\ub2e4.<\/p>\n<p>\uc774\uc81c \ub2e4\uc2dc\u00a0\ud654\uba74 \uc911\uc559\uc5d0 \uc788\ub294 Play \ubc84\ud2bc (\u25b6)\uc744 \ud074\ub9ad\ud558\uba74&#8230; \uc9dc\uc794!<br \/>\nCube\uac00 \uc911\ub825\uac00\uc18d\ub3c4\ub97c \ubc1b\uc73c\uba70 \ub5a8\uc5b4\uc9c0\ub2e4\uac00 \ubc14\ub2e5\uc5d0 \uc815\uc9c0\ud558\uac8c \ub41c\ub2e4. \ud074\ub9ad \uba87\ubc88\uc73c\ub85c \uad6c\ud604\ud55c \uac83\uc774\ub2e4. \uc815\ub9d0 \ub180\ub78d\ub2e4&#8230;<\/p>\n<p>\uac04\ub2e8\ud55c \uc2e4\uc2b5\uc740 \uc5ec\uae30\uae4c\uc9c0&#8230;<br \/>\n\ud558\uc9c0\ub9cc \uc774 \uc2e4\uc2b5\uc73c\ub85c Unity \ud234\uc758 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\ubc95\uc778 Scene\uc5d0 \uc624\ube0c\uc81d\ud2b8\ub97c \ucd94\uac00\ud558\ub294 \ubc95, \ucd95\uc5d0 \ub300\ud55c \uc774\ud574 \ubc0f \uc870\uc791\ubc95, \uc624\ube0c\uc81d\ud2b8\uc5d0 \ucef4\ud3ec\ub10c\ud2b8\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \uc775\ud790 \uc218 \uc788\uc5c8\ub2e4.<\/p>\n<p>\uadf8\ub4a4\ub85c \uc9c0\ub8e8\ud55c C# \uae30\ucd08\ubb38\ubc95 \uac15\uc758\uac00 \uacc4\uc18d\ub418\uc5c8\ub2e4.<del>(\uac15\uc0ac\ub2d8 \uc800\ub294 C#\ub9cc 10\ub144 \ud588\uc2b5\ub2c8\ub2e4..)<\/del><\/p>\n<p>\uadf8\ub9ac\uace0 \uac00\uc7a5 \ud765\ubbf8\ub85c\uc6e0\ub358 \ub0b4\uc6a9\ud558\ub098.<br \/>\nUnity\ub294 \uc798 \ub9cc\ub4e4\uc5b4\uc9c4 Component\uc758 \uc870\ud569\uc73c\ub85c \uc6d0\ud558\ub294 \uae30\ub2a5\uc744 \ub9cc\ub4e4\uc5b4 \ub0b4\ub294<\/p>\n<blockquote><p>Composite Pattern<\/p><\/blockquote>\n<p>\uc73c\ub85c \uac1c\ubc1c\ud55c\ub2e4\ub294 \uac83. Unity\uc758 \ud575\uc2ec \ud328\ud134\uc774\ub77c\uace0 \ud55c\ub2e4.<\/p>\n<p>\uc704\uc5d0\uc11c \ucd94\uac00\ud558\uc600\ub358 3D Cube \uc624\ube0c\uc81d\ud2b8\uc5d0\ub294 Transform, Mesh Filter, Box Collier, Rigidbody \ucef4\ud3ec\ub10c\ud2b8\uac00 \uac01\uac01 \uc11c\ub85c\uc758 \uc601\ud5a5\uc744 \ubc1b\uc9c0\uc54a\uace0 \ub3d9\uc791\ud55c\ub2e4.<\/p>\n<p>\ucd94\uac00\ub85c C# \uc2a4\ud06c\ub9bd\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \uc704\ub85c \uc0b4\uc9dd \uc810\ud504\ud588\ub2e4\uac00 \ub5a8\uc5b4\uc9c0\ub294 \uae30\ub2a5\ub3c4 \uad6c\ud604\ud558\uc600\ub2e4.<br \/>\n&#8216;Project&#8217; \uba54\ub274\uc5d0\uc11c Assets \ud654\uba74\uc5d0\uc11c \ub9c8\uc6b0\uc2a4 \uc624\ub978\ucabd \ud074\ub9ad\ud558\uc5ec Context \uba54\ub274\uc5d0\uc11c &#8216;Create&#8217; &#8211; &#8216;C# Script&#8217;\ub97c \uc120\ud0dd\ud558\uc5ec C# \uc2a4\ud06c\ub9bd\ud2b8\ub97c \ucd94\uac00\ud55c\ub2e4. \uc774\ub984\uc740 \uac04\ub2e8\ud558\uac8c &#8216;Jump&#8217;\ub85c \ud55c\ub2e4. \uc0dd\uc131\ub41c Jump \uc544\uc774\ucf58\uc744 \ub354\ube14\ud074\ub9ad\ud558\uba74 \uc774\uc81c \uce5c\uc219\ud55c Visual Studio\uac00 \uc2e4\ud589\ub418\uba74\uc11c C# \ud30c\uc77c\uc744 \ud3b8\uc9d1\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>Jump \ud074\ub798\uc2a4\uc5d0\uc11c Rigidbody type\uc758 public filed\ub97c \ud558\ub098 \ub9cc\ub4e4\uace0, Start\uc5d0\uc11c rigidbody\uc758 AddForce() \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uc5ec y\uac12\uc744 300 \uc73c\ub85c \uc124\uc815\ud558\uc600\ub2e4. \ucef4\ud30c\uc77c\ud560 \ud544\uc694\ub3c4 \uc5c6\uc774\u00a0 Ctrl + S \ud0a4\ub97c \ub20c\ub7ec \uc800\uc7a5\ud558\uace0 \ub2e4\uc2dc Unity\ub85c \ub3cc\uc544\uc628\ub2e4.<\/p>\n<pre title=\"Jump class\" class=\"theme:classic lang:c# mark:11 decode:true \">using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class Jump : MonoBehaviour \n{\n\tpublic Rigidbody rigidbody;\n\n\tvoid Start () \n\t{\n\t\trigidbody.AddForce(0, 300, 0);\n\t}\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&#8216;Project&#8217; \uba54\ub274\uc5d0\uc11c Jump\ub97c \uc120\ud0dd\ud558\uace0, &#8216;Hierarchy&#8217;\uc758 Cube\uc5d0\u00a0 Drag&amp;Drop\ud558\uba74 \uc791\uc131\ud558\uc600\ub358 \uc2a4\ud06c\ub9bd\ud2b8\uac00 \ud574\ub2f9 \uc624\ube0c\uc81d\ud2b8\uc5d0 \uc801\uc6a9\uc774 \ub41c\ub2e4. &#8216;Inspector&#8217;\uc5d0 Jump script\uac00 \ucd94\uac00\ub41c \uac78 \ud655\uc778\ud560 \uc218\uc788\ub2e4.<br \/>\n\uc544\uc9c1 \ud55c\uac00\uc9c0 \uc791\uc5c5\uc774 \ub354 \ub0a8\uc558\ub2e4. \uc544\uae4c public Rigidbody rigidbody \ud544\ub4dc\ub97c \uc0dd\uc131\ud588\ub294\ub370, \uc774\uac83\uc744 3D Cube\uac00 \uc774\ubbf8 \uac00\uc9c0\uace0 \uc788\ub294 Rigidbody\uc640 \uc5f0\uacb0\uc2dc\ucf1c\uc8fc\uc5b4\uc57c \ud55c\ub2e4. \uc5b4\ub5bb\uac8c \ud558\ub0d0\uad6c?<br \/>\n&#8216;Inspector&#8217; \ud654\uba74\uc5d0\uc11c Righdbody \uae00\uc790\ub97c Drag\ud558\uc5ec Jump (Script)\uc758 None (Rigidbody) \ubc15\uc2a4\uc5d0 Drop!<\/p>\n<div id=\"attachment_363\" style=\"width: 783px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-363\" class=\"wp-image-363 size-full\" src=\"http:\/\/192.168.10.240:8080\/wp-content\/uploads\/2018\/11\/component_to_script.png\" alt=\"link component to script\" width=\"773\" height=\"981\" srcset=\"https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/component_to_script.png 773w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/component_to_script-236x300.png 236w, https:\/\/reasty.net\/wp-content\/uploads\/2018\/11\/component_to_script-768x975.png 768w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><p id=\"caption-attachment-363\" class=\"wp-caption-text\">link component to script<\/p><\/div>\n<p>\uc791\uc5c5 \ub05d! \ub2e4\uc2dc\u00a0\ud654\uba74 \uc911\uc559\uc5d0 \uc788\ub294 Play \ubc84\ud2bc (\u25b6)\uc744 \ud074\ub9ad\ud558\uba74 3D Cube\uac00 \uc704\ub85c \uc0b4\uc9dd \ub5a0\uc62c\ub790\ub2e4\uac00 \ub5a8\uc5b4\uc9c0\ub294 \ud654\uba74\uc744 \ubcfc \uc218 \uc788\ub2e4.<\/p>\n<p>\uc774\uac83\uc73c\ub85c C# \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc5b4\ub5bb\uac8c \uc0ac\uc6a9\ud558\ub294\uc9c0\ub3c4 \ubc30\uc6b0\uac8c \ub418\uc5c8\ub2e4.<\/p>\n<p>\uc7bc\uc788\ub2e4. \uc9c4\uc9dc \uc7bc\uc788\ub2e4! \ud53c\uace4\ud55c \uad50\uc721 \uc77c\uc815\uc774\uc9c0\ub9cc \uc7ac\ubbf8\uc788\uac8c \ubc30\uc6b8\uc218 \uc788\uc744 \uac83 \uac19\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uac04\ub9cc\uc5d0 \ud3ec\uc2a4\ud305. \uac04\ub9cc\uc5d0 \uc0c8\ub85c\uc6b4 \ubb34\uc5b8\uac00\ub97c \ud560 \uae30\ud68c\uac00 \uc788\uae30 \ub54c\ubb38\uc774\ub2e4. \ubc14\ub85c Unity \uac00 \uadf8\uac83! \ud68c\uc0ac\uc5d0\uc11c \ub0b4\ub144\uc5d0 Unity\ub85c \ubb34\uc5b8\uac00 \ud504\ub85c\uc81d\ud2b8\ub97c \ud560 \uac70\ub780\ub2e4. \ud3c9\uc18c \uad00\uc2ec\uc788\ub358\uac70\ub77c \uc7bd\uc2f8\uac8c \uad50\uc721\uc2e0\uccad\ud588\ub2e4. \uc720\ub2c8\ud2f0 \ub7ec\ub2dd \uc13c\ud130(SVVR)\uc5d0\uc11c \uc9c4\ud589\ud558\ub294 &#8216;Unity2017\uc744 \ud65c\uc6a9\ud55c 2D\/3D \uac8c\uc784 \uac1c\ubc1c(\ucd08\uae09)&#8217; \uac15\uc758\ub97c \ub4e4\uc73c\uba70 \uacf5\ubd80\ud55c \ub0b4\uc6a9\uc744 \uc815\ub9ac\ud558\uace0\uc790 \ud55c\ub2e4. \uad50\uc721 \uccab\uc9f8\ub0a0, \uac15\uc0ac \ubcf8\uc778\uc758 \uc9e7\uc740 \uc18c\uac1c\uc640 \ud568\uaed8 \uac15\uc758\uac00 \uc2dc\uc791\ub418\uc5c8\ub2e4. \uc7ac\ubbfc \uac15\uc0ac\ub2d8 \uc774\uc5c8\ub358\uac00..\uae30\uc5b5\uc774&#8230;(\uc8c4\uc1a1;;) \ud234\uc758 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\ubc95 \uc775\ud798\uc744 \uc704\ud558\uc5ec \ubc14\ub85c \uc2e4\uc2b5\uc774 \uc9c4\ud589\ub418\uc5c8\ub2e4. \ub099\ud558\ud558\ub294&#8230; <a href=\"https:\/\/reasty.net\/?p=360\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,11],"tags":[21,45],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-study","category-unity","tag-c","tag-unity"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=360"}],"version-history":[{"count":0,"href":"https:\/\/reasty.net\/index.php?rest_route=\/wp\/v2\/posts\/360\/revisions"}],"wp:attachment":[{"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reasty.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}