{"id":11329,"date":"2022-01-06T10:00:00","date_gmt":"2022-01-06T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=11329"},"modified":"2022-01-05T18:14:31","modified_gmt":"2022-01-05T09:14:31","slug":"unity-%e3%83%89%e3%83%ad%e3%83%83%e3%83%97%e3%83%80%e3%82%a6%e3%83%b3ui%e3%81%ae%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/11329","title":{"rendered":"Unity \u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3UI\u306e\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u4eca\u56de\u306fUnity\u306eUI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8[\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3]\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h4>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u3068\u306f<\/h4>\n\n\n\n<p>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u3068\u306f\u3001\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u306e\u3088\u3046\u306b\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u9078\u629e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u30ea\u30b9\u30c8\u3068\u3057\u3066\u8868\u793a\/\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305fUI\u3067\u3059\u3002<br>\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"162\" height=\"35\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/1-a.png\" alt=\"\" class=\"wp-image-11330\"\/><figcaption>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"165\" height=\"100\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/1-b.jpg\" alt=\"\" class=\"wp-image-11332\"\/><figcaption>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5c55\u958b\u3057\u305f\u72b6\u614b\u3002\u9078\u629e\u80a2\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<h4>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u3092\u914d\u7f6e\u3059\u308b<\/h4>\n\n\n\n<p>Unity\u306e\u30d2\u30a8\u30e9\u30eb\u30ad\u30fc\u4e0a\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u30e1\u30cb\u30e5\u30fc\u304b\u3089 UI &gt; Dropdown \u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"399\" height=\"564\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/2.png\" alt=\"\" class=\"wp-image-11336\"\/><\/figure>\n\n\n\n<p>\u914d\u7f6e\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u30d2\u30a8\u30e9\u30eb\u30ad\u30fc\u306eCanvas\u4ee5\u4e0b\u306bDropdown\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"162\" height=\"81\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/3.png\" alt=\"\" class=\"wp-image-11337\"\/><\/figure>\n\n\n\n<p>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u306e\u9078\u629e\u9805\u76ee\u306f\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u4e0a\u306eOptions\u9805\u76ee\u3067\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"416\" height=\"894\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/4.png\" alt=\"\" class=\"wp-image-11338\"\/><\/figure>\n\n\n\n<h4>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u306e\u9078\u629e\u9805\u76ee\u3092script\u3067\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b<\/h4>\n\n\n\n<p>\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u306e\u9078\u629e\u9805\u76ee\u3092script\u3067\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b\u306b\u306fList\u3092Dropdown\u306eAddOptions\u30e1\u30bd\u30c3\u30c9\u3067<br>\u8ffd\u52a0\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002<br>\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing UnityEngine.UI;\n\npublic class DropdownTest : MonoBehaviour\n{\n    public Dropdown dropDownSample;\n\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        \/\/\u73fe\u6642\u70b9\u306e\u9078\u629e\u9805\u76ee\u3092\u3044\u3063\u305f\u3093\u30ea\u30bb\u30c3\u30c8\u3059\u308b\n        dropDownSample.ClearOptions();\n\n        \/\/\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u9078\u629e\u9805\u76ee\u7528\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\n        List&lt;string&gt; list = new List&lt;string&gt;();\n        list.Add(\"\u9078\u629eA\");\n        list.Add(\"\u9078\u629eB\");\n        list.Add(\"\u9078\u629eC\");\n\n        \/\/\u30ea\u30b9\u30c8\u5185\u5bb9\u3092\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u306b\u53cd\u6620\n        dropDownSample.AddOptions(list);\n\n\n    }\n\n}<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306escript\u3092\u4efb\u610f\u306eGameObject\u306b\u30a2\u30bf\u30c3\u30c1\u3057\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u300cDropdownManager\u300d\u3068\u3044\u3046\u540d\u79f0\u306e\u7a7a\u306eGameObject\u3092\u751f\u6210\u3057\u3066\u30a2\u30bf\u30c3\u30c1\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306bpublic\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308bdropDownSample\u306b\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3UI\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30a2\u30b5\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"857\" height=\"302\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/5.png\" alt=\"\" class=\"wp-image-11339\"\/><\/figure>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u59cb\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306eScript\u306b\u3066\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u306e\u30ea\u30b9\u30c8\u5185\u5bb9\u306b<br>\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"163\" height=\"101\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/01\/6.png\" alt=\"\" class=\"wp-image-11340\"\/><\/figure>\n\n\n\n<p><br>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11329\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/11329\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Unity \u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3UI\u306e\u4f7f\u7528\u65b9\u6cd5\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11329\" data-text=\"Unity \u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3UI\u306e\u4f7f\u7528\u65b9\u6cd5\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11329\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11329\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fUnity\u306eUI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8[\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3]\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[84,109],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11329"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=11329"}],"version-history":[{"count":7,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11329\/revisions"}],"predecessor-version":[{"id":11355,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11329\/revisions\/11355"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=11329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=11329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=11329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}