{"id":2270,"date":"2024-08-07T05:37:38","date_gmt":"2024-08-07T05:37:38","guid":{"rendered":"https:\/\/histy.jp\/?p=2270"},"modified":"2024-11-09T15:10:18","modified_gmt":"2024-11-09T15:10:18","slug":"post-2270","status":"publish","type":"post","link":"https:\/\/histy.jp\/?p=2270","title":{"rendered":"2024\u5e748\u67087\u65e5\u8a18\u9332"},"content":{"rendered":"\n<p>\u30ab\u30fc\u30c9\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u6642\u306e\u51e6\u7406\u3067\u3001\u30ab\u30fc\u30c9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6301\u3064position\u3092\u3069\u3046\u3059\u308b\u304b\u3067\u60a9\u3093\u3067\u3044\u305f\u306e\u3067\u8272\u3005\u8abf\u3079\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/motoseneet.com\/unity\/12815\/\">\u3010Unity\u3011\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u3068\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19<\/a><\/p>\n\n\n\n<p>\u672c\u5f53\u306bRectTransform\u304c\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19\u3067\u3001Transfrom\u304c\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u3068\u3044\u3046\u4f7f\u3044\u5206\u3051\u306a\u306e\u304b\uff1f<\/p>\n\n\n\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/shibuya24.info\/entry\/unity-screen-to-world#%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E5%BA%A7%E6%A8%99%E3%81%8B%E3%82%89%E3%83%AF%E3%83%BC%E3%83%AB%E3%83%89%E5%BA%A7%E6%A8%99%E3%81%AB%E5%A4%89%E6%8F%9B%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\">\u3010Unity\u3011\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19\u3092\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n\n\n\n<p>\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u3068\u30ed\u30fc\u30ab\u30eb\u5ea7\u6a19\u3002<\/p>\n\n\n\n<p>\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u3092\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19\u304b\u3089\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u306b\u5909\u63db\u3057\u3066Transform\u306eposition\u306b\u4ee3\u5165\u3057\u305f\u5834\u5408\u3002<\/p>\n\n\n\n<ol>\n<li>\u30d2\u30a8\u30e9\u30eb\u30ad\u30fc\u4e0a\u3067\u30eb\u30fc\u30c8\u306b\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u8868\u793a\u3055\u308c\u308b<\/li>\n\n\n\n<li>\u89aa\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u5834\u5408\u306f\u89aa\u304c\u57fa\u6e96\u304b\u3089\u305a\u308c\u3066\u3044\u308b\u5206\u3060\u3051\u30ba\u30ec\u308b\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u672a\u691c\u8a3c\u3002\u8981\u691c\u8a0e\u3002<\/p>\n\n\n\n<p>\u3044\u3084\u3001\u30ba\u30ec\u306a\u305d\u3046\u3002\u30ed\u30fc\u30ab\u30eb\u5ea7\u6a19\u306b\u4ee3\u5165\u3057\u305f\u3089\u30ba\u30ec\u308b\u306f\u305a\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/fineworks-fine.hatenablog.com\/entry\/2023\/03\/25\/073000\">Unity &#8211; \u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u3001\u30ed\u30fc\u30ab\u30eb\u5ea7\u6a19\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19\u3001\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u5ea7\u6a19<\/a><\/p>\n\n\n\n<p>\u8a71\u306e\u8da3\u65e8\u3068\u306f\u9055\u3046\u304c\u9762\u767d\u305d\u3046\u306a\u8a18\u4e8b\u306b\u51fa\u4f1a\u3063\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/zenn.dev\/r_ngtm\/books\/shadergraph-cookbook\/viewer\/tips-position\">&nbsp;ShaderGraph\u306e\u5ea7\u6a19\u7a7a\u9593<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"634\" height=\"172\" src=\"https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-2.png\" alt=\"\" class=\"wp-image-2277\" srcset=\"https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-2.png 634w, https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-2-300x81.png 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/figure>\n\n\n\n<p>\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3059\u3068\u30c9\u30e9\u30c3\u30b0\u3092\u8f9e\u3081\u305f\u77ac\u9593\u5909\u306a\u4f4d\u7f6e\u306b\u98db\u3070\u3055\u308c\u308b\u3002<br>\u89aa\u5b50\u95a2\u4fc2\u304c\u95a2\u4fc2\u3057\u3066\u305d\u3046\u3060\u3051\u3069\u3069\u3046\u306a\u3063\u3066\u308b\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u3002\u4eca\u306f\u98db\u3070\u3059\u3002<br>Dotween\u306e\u51e6\u7406\u304c\u958b\u59cb\u3059\u308b\u524d\u306b\u89aa\u304c\u5909\u308f\u3063\u3066\u3001\u3046\u30fc\u3093\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>DOTWeen\u306eSequence\u306b\u3064\u3044\u3066<\/p>\n\n\n\n<p><a href=\"https:\/\/dotween.demigiant.com\/documentation.php\">Nomenclature<\/a><\/p>\n\n\n\n<p>Sequence\u3000sequence = DOTween.Sequence();<\/p>\n\n\n\n<p>\u3067\u53d6\u5f97\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>SetLink<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Links this tween to a GameObject and assigns a behaviour depending on its active state. This will also cause the tween to be automatically killed when the GameObject is destroyed.<br><strong>NOTE:&nbsp;<\/strong>has no effect if the tween is added to a Sequence.<\/p>\n<cite><a href=\"https:\/\/dotween.demigiant.com\/documentation.php\">https:\/\/dotween.demigiant.com\/documentation.php<\/a><\/cite><\/blockquote>\n\n\n\n<p>DOTween\u4e2d\u306b\u305d\u308c\u3092\u3057\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u7834\u58ca\u3055\u308c\u3066\u3082\u3001DOTween\u306f\u7834\u58ca\u3055\u308c\u306a\u3044\u3002\u306a\u306e\u3067\u3001DOTween\u304c\u7834\u58ca\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3059\u308b\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u306a\u3044\u3088\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002SetLink(gameObject)\u3092\u3057\u3066\u304a\u304f\u3068\u3001gameObject\u304c\u30a2\u30af\u30c6\u30a3\u30d6\u304b\u3069\u3046\u304b\u3067DOTween\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u7d9a\u3051\u308b\u304b\u5224\u5b9a\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>OnComplete\u3068OnKill\u306b\u3064\u3044\u3066<\/p>\n\n\n\n<p>\u7591\u554f<\/p>\n\n\n\n<p>\u4f55\u4e8b\u3082\u7121\u304f\u51e6\u7406\u304c\u7d42\u4e86\u3057\u305f\u3089\u3001OnComplete\u306e\u5f8c\u306bOnKill\u306f\u547c\u3070\u308c\u308b\u306e\u304b\u3002<\/p>\n\n\n\n<p>\u7b54\u3048<\/p>\n\n\n\n<p>\u547c\u3070\u308c\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"57\" src=\"https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-4.png\" alt=\"\" class=\"wp-image-2288\" srcset=\"https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-4.png 597w, https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-4-300x29.png 300w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"262\" height=\"92\" src=\"https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-3.png\" alt=\"\" class=\"wp-image-2287\"\/><\/figure>\n\n\n\n<p>\u6839\u62e0<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u6587\u7ae0\u3067\u3001completion\u306e\u5f8c\u306bkill\u304c\u81ea\u52d5\u7684\u306b\u547c\u3070\u308c\u308b\u3068\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3002<\/p>\n\n\n\n<p>Kill<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Kills the tween.<br>A tween is killed automatically when it reaches completion (unless you prevent it using&nbsp;<a href=\"javascript:void(0)\"><code>SetAutoKill(false)<\/code><\/a>), but you can use this method to kill it sooner if you don&#8217;t need it anymore.<\/p>\n<cite><a href=\"https:\/\/dotween.demigiant.com\/documentation.php\">https:\/\/dotween.demigiant.com\/documentation.php<\/a><\/cite><\/blockquote>\n\n\n\n<p>\u88dc\u8db3<\/p>\n\n\n\n<p>Kill(true)\u3067sequence\u3092kill\u3057\u305f\u5834\u5408\u306fOnComplete\u306e\u5f8c\u306bOnKill\u547c\u3070\u308c\u308b\u3002Kill(false)\u306a\u3089OnComplete(\u304c\u547c\u3070\u308c\u305a\u306bOnKill\u3060\u3051\u304c\u547c\u3070\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u65b9\u306e\u8a18\u4e8b\u3082\u52c9\u5f37\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/shibuya24.info\/entry\/unity-dotween-loop\">\u3010Unity\u3011\u6c38\u4e45\u30eb\u30fc\u30d7\u3059\u308bDOTween\u306e\u6b62\u3081\u65b9\u3068\u843d\u3068\u3057\u7a74<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3084\u308a\u305f\u3044\u3053\u3068<\/p>\n\n\n\n<p>Card\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304cScript\u5185\u3067\u30c7\u30c3\u30ad\u306eTransform\u3092\u81ea\u4e3b\u7684\u306b\u53d6\u5f97\u3057\u3066\u6b32\u3057\u3044\u3002<br>\uff11\uff0e\u30ab\u30fc\u30c9\u3092\u30c9\u30ed\u30fc\u3059\u308b\u51e6\u7406\u767a\u52d5<br>\uff12\uff0e\u30ab\u30fc\u30c9\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316<br>\uff13\uff0e\u30ab\u30fc\u30c9\u3092\u521d\u671f\u5316\u3002\u3053\u306e\u6642\u306b\u30c7\u30c3\u30ad\u306e\u4f4d\u7f6e\u304b\u3089\u624b\u672d\u306e\u4f4d\u7f6e\u307e\u3067\u79fb\u52d5\u3055\u305b\u308b\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<p>3\u306e\u51e6\u7406\u3067\u3001\u30c7\u30c3\u30ad\u306eTransform\u304c\u306a\u304f\u3066\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<br>Transform deckTransform = GemeObject.FindWithTag(&#8220;Deck&#8221;);<br>\u3092\u3044\u3044\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5150\u7ae5\u306b\u5b9f\u884c\u3057\u3066\u6b32\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u89e3\u6c7a\u65b9\u6cd5<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&nbsp;after a GameObject created with&nbsp;<a href=\"https:\/\/docs.unity3d.com\/ja\/2020.3\/ScriptReference\/Object.Instantiate.html\">Object.Instantiate<\/a>&nbsp;is initialized. Use&nbsp;<a href=\"https:\/\/docs.unity3d.com\/ja\/2020.3\/ScriptReference\/MonoBehaviour.Awake.html\">Awake<\/a>&nbsp;to initialize variables or states before the application starts.<\/p>\n<cite><a href=\"https:\/\/docs.unity3d.com\/ja\/2020.3\/ScriptReference\/MonoBehaviour.Awake.html\">https:\/\/docs.unity3d.com\/ja\/2020.3\/ScriptReference\/MonoBehaviour.Awake.html<\/a><\/cite><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.unity3d.com\/ja\/2020.3\/ScriptReference\/MonoBehaviour.Awake.html\">MonoBehaviour.Awake()<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.unity3d.com\/ja\/560\/ScriptReference\/MonoBehaviour.Start.html\">MonoBehaviour.Start()<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eAwake\u306bDebug.Log(&#8220;Instantiate1&#8221;);<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3059\u308b\u51e6\u7406\u3092\u66f8\u3044\u305f\u95a2\u6570\u306e\u4e2d\u3067Instatiate\u306e\u5f8c\u306bDebug.Log(&#8220;Instantiate2&#8221;);\u3092\u66f8\u3044\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"90\" src=\"https:\/\/histy.jp\/wp-content\/uploads\/2024\/08\/image-5.png\" alt=\"\" class=\"wp-image-2296\"\/><\/figure>\n\n\n\n<p>\u7d50\u8ad6<\/p>\n\n\n\n<p>\u3042\u308b\u30e1\u30bd\u30c3\u30c9\u3067Instantiate\u3092\u3057\u305f\u3089<\/p>\n\n\n\n<p>1.\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eAwake\u30e1\u30bd\u30c3\u30c9<br>2.\u3042\u308b\u30e1\u30bd\u30c3\u30c9\u306eInstantiate\u4ee5\u964d\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u51e6\u7406<br>3.\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eStart\u30e1\u30bd\u30c3\u30c9<\/p>\n\n\n\n<p>\u306e\u9806\u756a\u3067\u5b9f\u884c\u3055\u308c\u308b\u3002\u591a\u5206Start\u306f\u5225\u30d5\u30ec\u30fc\u30e0\u3067\u51e6\u7406\u3055\u308c\u3066\u308b\u306e\u304b\u3082\u3002<\/p>\n\n\n\n<p>\u8ffd\u52a0<\/p>\n\n\n\n<p>\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092enable=true\u306b\u3057\u305f\u3068\u304d\u306bStart\u304c\u3044\u3064\u547c\u3070\u308c\u308b\u304b\u3092\u691c\u8a3c\u3057\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ab\u30fc\u30c9\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u6642\u306e\u51e6\u7406\u3067\u3001\u30ab\u30fc\u30c9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6301\u3064position\u3092\u3069\u3046\u3059\u308b\u304b\u3067\u60a9\u3093\u3067\u3044\u305f\u306e\u3067\u8272\u3005\u8abf\u3079\u305f\u3002 \u3010Unity\u3011\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u3068\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19 \u672c\u5f53\u306bRectTransform\u304c\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19\u3067\u3001Tran [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/histy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2270"}],"collection":[{"href":"https:\/\/histy.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/histy.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/histy.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/histy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2270"}],"version-history":[{"count":19,"href":"https:\/\/histy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2270\/revisions"}],"predecessor-version":[{"id":2755,"href":"https:\/\/histy.jp\/index.php?rest_route=\/wp\/v2\/posts\/2270\/revisions\/2755"}],"wp:attachment":[{"href":"https:\/\/histy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/histy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/histy.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}