{"id":2608,"date":"2018-10-20T12:40:17","date_gmt":"2018-10-20T03:40:17","guid":{"rendered":"https:\/\/cg-method.com\/?p=2608"},"modified":"2026-01-04T20:40:42","modified_gmt":"2026-01-04T11:40:42","slug":"unity-game-clear","status":"publish","type":"post","link":"https:\/\/cg-method.com\/unity\/unity-game-clear\/","title":{"rendered":"Unity\u250215\u5206\u3067\u3067\u304d\u308b\uff01\u30ad\u30e3\u30e9\u304c\u89e6\u308c\u308b\u3068\u30b2\u30fc\u30e0\u30af\u30ea\u30a2\u306e\u6587\u5b57\u3092\u8868\u793a\u3059\u308b\u65b9\u6cd5\u2502VRoid"},"content":{"rendered":"\n<p>VRoid\u3067\u4f5c\u6210\u3057\u305f\u30ad\u30e3\u30e9\u304c\u7279\u5b9a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u89e6\u308c\u305f\u3089\u3001\u30b2\u30fc\u30e0\u30af\u30ea\u30a2\u306e\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u306e\u304a\u624b\u8efd\u30b2\u30fc\u30e0\u5236\u4f5c\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b4\u30fc\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h2>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>Hierarchy\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af \u2192 3D Object \u2192 Cube\u304b\u3089\u7403\u4f53\u3092\u4f5c\u6210\u3057\u3001\u9069\u5f53\u306a\u5927\u304d\u3055\u306b\u8abf\u6574<\/li>\n\n\n\n<li>Project\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af \u2192 Create \u2192 Material\u304b\u3089\u30de\u30c6\u30ea\u30a2\u30eb\u3092\u4f5c\u6210<\/li>\n\n\n\n<li>\u30de\u30c6\u30ea\u30a2\u30eb\u306e\u8a2d\u5b9a\u3092Particles \u2192 Alpha Blend\u306b\u5207\u308a\u66ff\u3048\u3066\u534a\u900f\u660e\u306b<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"213\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u01.png\" alt=\"\u30de\u30c6\u30ea\u30a2\u30eb\u306e\u8a2d\u5b9a\" class=\"wp-image-2610\"\/><\/figure>\n\n\n\n<p>\u4f5c\u6210\u3057\u305fMaterial\u3092\u7403\u4f53\u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3068\u3001\u898b\u305f\u76ee\u304c\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"322\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u02.png\" alt=\"\u30de\u30c6\u30ea\u30a2\u30eb\u9069\u7528\u5f8c\u306e\u898b\u305f\u76ee\" class=\"wp-image-2611\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u02.png 483w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u02-300x200.png 300w\" sizes=\"auto, (max-width: 483px) 100vw, 483px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b4\u30fc\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"987\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u03.png\" alt=\"\u30b4\u30fc\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\" class=\"wp-image-2612\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u03.png 436w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u03-133x300.png 133w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>Sphere\u3092\u9078\u629e\u3057\u3001Sphere Collider\u306eIs Trigger\u306b\u30c1\u30a7\u30c3\u30af<\/li>\n\n\n\n<li>Add Component\u304b\u3089Rigidbody\u3092\u691c\u7d22\u3057\u3066\u8ffd\u52a0<\/li>\n\n\n\n<li>Use Gravity\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3059<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ad\u30e3\u30e9\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"987\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u04_.png\" alt=\"\u30ad\u30e3\u30e9\u306e\u8a2d\u5b9a\" class=\"wp-image-2616\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u04_.png 348w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u04_-106x300.png 106w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>\u30ad\u30e3\u30e9\u3092\u9078\u629e\u3057\u3066Tag\u3092Player\u306b\u8a2d\u5b9a<\/li>\n\n\n\n<li>Capsule Collider\u306eIs Trigger\u306b\u30c1\u30a7\u30c3\u30af<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30ad\u30b9\u30c8\u306e\u8868\u793a<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"393\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u09.png\" alt=\"\u30c6\u30ad\u30b9\u30c8\u306e\u8868\u793a\" class=\"wp-image-2622\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u09.png 706w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u09-300x167.png 300w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>Hierarchy\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af \u2192 UI \u2192 Text\u3092\u62bc\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210<\/li>\n\n\n\n<li>\u540d\u524d\u3092\u300cGoalText\u300d\u306b\u5909\u66f4<\/li>\n\n\n\n<li>Width\u3001Height\u3001Font Size\u3001Color\u306a\u3069\u6587\u5b57\u4f4d\u7f6e\u3068\u898b\u305f\u76ee\u3092\u8abf\u6574<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"987\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u06_.png\" alt=\"\u30c6\u30ad\u30b9\u30c8\u306e\u8a2d\u5b9a\" class=\"wp-image-2617\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u06_.png 348w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u06_-106x300.png 106w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u306e\u8ffd\u52a0<\/h2>\n\n\n\n<p>\u30ad\u30e3\u30e9\u304c\u7403\u4f53\u306b\u89e6\u308c\u305f\u3089\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"315\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u05.png\" alt=\"\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8ffd\u52a0\" class=\"wp-image-2614\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u05.png 230w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u05-219x300.png 219w\" sizes=\"auto, (max-width: 230px) 100vw, 230px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list is-style-num_circle\">\n<li>Sphere\u3092\u9078\u629e\u3057\u3066Add Component \u2192 New script\u3092\u691c\u7d22<\/li>\n\n\n\n<li>\u300cGameController\u300d\u3068\u3044\u3046\u540d\u524d\u3067Create and Add\u3057\u3066\u8ffd\u52a0<\/li>\n\n\n\n<li>GameController\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066Visual Studio\u3092\u8d77\u52d5<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"486\" height=\"440\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u07.png\" alt=\"Visual Studio\u3067\u306e\u7de8\u96c6\" class=\"wp-image-2618\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u07.png 486w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u07-300x272.png 300w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\"><code>using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class GameController : MonoBehaviour\n{\n    public GameObject GoalText;\n\n    void Start()\n    {\n        GoalText.SetActive(false);\n    }\n\n    void Update()\n    {\n    }\n\n    private void OnTriggerEnter(Collider collider)\n    {\n        if (collider.gameObject.tag == &quot;Player&quot;)\n        {\n            GoalText.SetActive(true);\n        }\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001Sphere\u3092\u9078\u629e\u3057\u3066Goal Text\u6b04\u306b\u3001\u4f5c\u6210\u3057\u305fText\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3067\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"987\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u08.png\" alt=\"Goal Text\u306e\u767b\u9332\" class=\"wp-image-2619\" srcset=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u08.png 348w, https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/u08-106x300.png 106w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b2\u30fc\u30e0\u30d7\u30ec\u30a4\u30c6\u30b9\u30c8<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"390\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2018\/10\/goal.gif\" alt=\"\u30b2\u30fc\u30e0\u30d7\u30ec\u30a4\u30c6\u30b9\u30c8\" class=\"wp-image-2620\"\/><\/figure>\n\n\n\n<p>\u518d\u751f\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u3001\u8d64\u3044\u7403\u4f53\u306b\u89e6\u308c\u3066\u307f\u307e\u3059\u3002\u300cClear!\u300d\u306e\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u30ab\u30e1\u30e9\u3092\u8abf\u6574\u3059\u308b\u3068\u304d\u306f\u3001\u30ab\u30e1\u30e9\u3092\u9078\u629e\u3057\u3066Ctrl+Shift+F\u3092\u62bc\u3059\u3068\u30b7\u30fc\u30f3\u30d3\u30e5\u30fc\u3068\u30b2\u30fc\u30e0\u30d3\u30e5\u30fc\u304c\u30ea\u30f3\u30af\u3057\u3066\u8abf\u6574\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b4\u30fc\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306bIs Trigger\u3092ON\u306b\u3057\u305fCollider\u3092\u8a2d\u5b9a<\/li>\n\n\n\n<li>\u30ad\u30e3\u30e9\u306bPlayer\u30bf\u30b0\u3092\u8a2d\u5b9a<\/li>\n\n\n\n<li>OnTriggerEnter\u3067\u30bf\u30b0\u3092\u5224\u5b9a\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a<\/li>\n<\/ul>\n\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/digilab.tech\/unity%E3%82%B3%E3%83%A9%E3%82%A4%E3%83%80%E3%83%BC%E3%81%A7%E3%82%B4%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B\/\">https:\/\/digilab.tech\/unity\u30b3\u30e9\u30a4\u30c0\u30fc\u3067\u30b4\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\/<\/a><\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>VRoid\u3067\u4f5c\u6210\u3057\u305f\u30ad\u30e3\u30e9\u304c\u7279\u5b9a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u89e6\u308c\u305f\u3089\u3001\u30b2\u30fc\u30e0\u30af\u30ea\u30a2\u306e\u6587\u5b57\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u6570\u884c\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u306e\u304a\u624b\u8efd\u30b2\u30fc\u30e0\u5236\u4f5c\u3067\u3059\u3002 \u30b4\u30fc\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210 \u4f5c\u6210\u3057\u305fMaterial\u3092\u7403\u4f53\u306b\u30c9\u30e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21674,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-2608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-basic"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/2608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/comments?post=2608"}],"version-history":[{"count":3,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/2608\/revisions"}],"predecessor-version":[{"id":21675,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/2608\/revisions\/21675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media\/21674"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media?parent=2608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/categories?post=2608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/tags?post=2608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}