{"id":6633,"date":"2016-03-21T10:58:45","date_gmt":"2016-03-21T01:58:45","guid":{"rendered":"http:\/\/madnesslabo.net\/utage\/?p=6633"},"modified":"2016-03-21T11:17:29","modified_gmt":"2016-03-21T02:17:29","slug":"unity5-3%e3%81%ae%e3%82%b3%e3%83%ab%e3%83%bc%e3%83%81%e3%83%b3%e5%86%85%e3%81%a7","status":"publish","type":"post","link":"https:\/\/madnesslabo.net\/utage\/?p=6633","title":{"rendered":"Unity5.3\u304b\u3089\u3001\u30b3\u30eb\u30fc\u30c1\u30f3\u5185\u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u547c\u3073\u51fa\u3057\u3084\u3059\u304f\u306a\u3063\u305f"},"content":{"rendered":"<p>\u5148\u65e5\u3001<a href=\"https:\/\/unity-bu.doorkeeper.jp\/events\/40412\">Unity\u306e\u65b0\u6a5f\u80fd\u3067\u904a\u3076\u4f1a<\/a>\u3068\u3044\u3046\u306e\u306b\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u6c17\u306b\u306a\u3063\u3066\u3044\u305fUnity5.3\u306e\u65b0\u6a5f\u80fd\u306e\u30ab\u30b9\u30bf\u30e0\u30b3\u30eb\u30fc\u30c1\u30f3\u3068\u3044\u3046\u306e\u3092\u8a66\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u516c\u5f0f\u30d6\u30ed\u30b0\u3067\u306f\u3053\u3093\u306a\u611f\u3058<a href=\"http:\/\/blogs.unity3d.com\/jp\/2015\/12\/01\/custom-coroutines\/\">http:\/\/blogs.unity3d.com\/jp\/2015\/12\/01\/custom-coroutines\/<\/a><br \/>\n\u307e\u3068\u3081\u308b\u3068\u2026<br \/>\n\u30fbWaitForSeconds\u306e\u3088\u3046\u306anew\u3059\u308b\u3068\u30b3\u30eb\u30fc\u30c1\u30f3\u3068\u3057\u3066\u4f7f\u3048\u308b\u30af\u30e9\u30b9\u3092\u81ea\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f<br \/>\n\u30fb\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\u307e\u3067\u5f85\u6a5f\u3059\u308b\u3001WaitUntil \u304c\u8ffd\u52a0<br \/>\n\u30fb\u6761\u4ef6\u304c\u6e80\u305f\u3055\u3066\u3044\u308b\u9593\u306f\u5f85\u6a5f\u3059\u308b\u3001WaitWhile\u3000\u304c\u8ffd\u52a0<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30ed\u30fc\u30c9\u3068\u304b\u306e\u975e\u540c\u671f\u51e6\u7406\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9\u3092\u4fc4\u7136\u4f5c\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u306d\u3002<br \/>\n\u3055\u3089\u306b\u3001\u4e00\u3064\u5730\u5473\u306a\u304c\u3089\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u305d\u308c\u306b\u3064\u3044\u3066\u88dc\u8db3<br \/>\n<\/br><br \/>\n\u305d\u308c\u306f\u3001\u300c\u30b3\u30eb\u30fc\u30c1\u30f3\u5185\u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306b\u3001StartCorouitne\u304c\u4e0d\u8981\u306b\u306a\u3063\u305f\u300d\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<br \/>\n\u30b3\u30eb\u30fc\u30c1\u30f3\u5185\u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u547c\u3076\u306b\u306f\u3001StartCoroutine\u304c\u5fc5\u9808\u3060\u3063\u305f\u305f\u3081\u3001MonoBehaviour\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u6614\u305d\u306e\u70b9\u3092\u307e\u3068\u3081\u305f\u306e\u3067\u3001<a href=\"http:\/\/www.slideshare.net\/RyoheiTokimura\/ss-35321624\/67\">\u8a73\u7d30\u306f\u3053\u3061\u3089<\/a><br \/>\n5.3\u304b\u3089\u306f\u3053\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>[csharp]<br \/>\npublic class SubClass<br \/>\n{<br \/>\n\tpublic IEnumerator CoTest()<br \/>\n\t{<br \/>\n\t\tyield return CoTest1();<br \/>\n\t\tyield return CoTest2();<br \/>\n\t}<br \/>\n\/\/\u3000\u3000\u30005.3\u4ee5\u524d\u306e\u66f8\u304d\u65b9\u3001MonoBehavior\u304c\u5fc5\u8981\uff08\u547c\u3073\u51fa\u3057\u3082\u3068\u306a\u3069\uff09<br \/>\n\/\/\tpublic IEnumerator CoTest( MonoBehavior parent )<br \/>\n\/\/\t{<br \/>\n\/\/\t\tyield return parent.StartCorouitne( CoTest1() );<br \/>\n\/\/\t\tyield return parent.StartCorouitne( CoTest2() );<br \/>\n\/\/\t}<\/p>\n<p>\tIEnumerator CoTest1()<br \/>\n\t{<br \/>\n\t\tyield return 0;<br \/>\n\t}<\/p>\n<p>\tIEnumerator CoTest2()<br \/>\n\t{<br \/>\n\t\tyield return 0;<br \/>\n\t}<br \/>\n}<br \/>\n[\/csharp]<\/p>\n<p>\u3061\u3087\u3063\u3068\u3084\u3084\u3053\u3057\u3044\u3067\u3059\u304c\u3001\u3042\u304f\u307e\u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u5185\u90e8\u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306e\u30b1\u30fc\u30b9\u3067\u3059\u3002<br \/>\n\u6700\u521d\u306e\u30b3\u30eb\u30fc\u30c1\u30f3\u306e\u547c\u3073\u51fa\u3057\u3001\u4f8b\u3067\u3044\u3046\u3068CoTest()\u306e\u547c\u3073\u51fa\u3057\u306f\u3084\u306f\u308aStartCoroutine\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n<\/br><\/p>\n<p><strong>\u300cMonoBehaviour\u4ee5\u5916\u306e\u30af\u30e9\u30b9\u3067\u3082\u81ea\u7531\u306b\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u5165\u308c\u5b50\u3068\u3057\u3066\u4f7f\u3048\u308b\u300d<\/strong> \u3068\u3044\u3046\u306e\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306e\u4f55\u304c\u4fbf\u5229\u304b\u3068\u3044\u3046\u3068\u3001\u30b3\u30eb\u30fc\u30c1\u30f3\u306e\u5185\u90e8\u304c\u8907\u96d1\u306b\u306a\u3063\u305f\u3068\u304d\u306b\u51e6\u7406\u3092\u5207\u308a\u5206\u3051\u305f\u308a\u3001\u518d\u5229\u7528\u3067\u304d\u308b\u304d\u308b\u3053\u3068\u306a\u3093\u3067\u3059\u3088\u306d\u3002<br \/>\n\u6614\u306f\u3053\u306e\u8fba\u306e\u51e6\u7406\u306e\u66f8\u304d\u8f9b\u3055\u306e\u305b\u3044\u3067\u3001\u30b3\u30eb\u30fc\u30c1\u30f3\u306e\u5185\u90e8\u51e6\u7406\u304c\u4e00\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u3072\u305f\u3059\u3089\u80a5\u5927\u5316\u3057\u305f\u308a\u3001\u4f3c\u305f\u3088\u3046\u306a\u51e6\u7406\u304c\u3042\u3061\u3053\u3061\u306b\u3067\u304d\u305f\u308a\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u3053\u3068\u3082\u8d77\u304d\u304b\u306d\u306a\u304b\u3063\u305f\u306e\u3067\u3002<\/p>\n<p>\u300c\u305d\u3082\u305d\u3082MonoBehaviour\u4ee5\u5916\u306e\u30af\u30e9\u30b9\u3067\u30b3\u30eb\u30fc\u30c1\u30f3\u5b9f\u88c5\u3057\u306a\u3051\u308c\u3070\u3044\u3044\u300d\u3068\u3044\u3046\u610f\u898b\u3082\u3042\u308a\u307e\u3059\u304c\u3001GameObject\u5358\u4f4d\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u308a\u305f\u304f\u306a\u3044\u3068\u304d\u3068\u304b\u3001\u901a\u5e38\u306e\u30af\u30e9\u30b9\u3067\u3067\u304d\u305f\u307b\u3046\u304c\u4fbf\u5229\u306a\u30b1\u30fc\u30b9\u306f\u591a\u3044\u306e\u3067\u3059\u3002<br \/>\n<\/br><\/p>\n<p>5.3\u306e\u30ab\u30b9\u30bf\u30e0\u30b3\u30eb\u30fc\u30c1\u30f3\u306e\u5fdc\u7528\u7bc4\u56f2\u306f\u76f8\u5f53\u5e83\u3044\u306e\u3067\u3001\u8272\u3005\u4f5c\u3063\u3066\u307f\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001Unity\u306e\u65b0\u6a5f\u80fd\u3067\u904a\u3076\u4f1a\u3068\u3044\u3046\u306e\u306b\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002 \u305d\u3053\u3067\u3001\u6c17\u306b\u306a\u3063\u3066\u3044\u305fUnity5.3\u306e\u65b0\u6a5f\u80fd\u306e\u30ab\u30b9\u30bf\u30e0\u30b3\u30eb\u30fc\u30c1\u30f3\u3068\u3044\u3046\u306e\u3092\u8a66\u3057\u3066\u307e\u3057\u305f\u3002 \u516c\u5f0f\u30d6\u30ed\u30b0\u3067\u306f\u3053\u3093\u306a\u611f\u3058http:\/\/blogs.unity3d. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"jetpack_publicize_connections":[],"aioseo_notices":[],"modified_by":"\u30de\u30c3\u30c9\u30cd\u30b9\u30e9\u30dc","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p58j32-1IZ","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=\/wp\/v2\/posts\/6633"}],"collection":[{"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6633"}],"version-history":[{"count":15,"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=\/wp\/v2\/posts\/6633\/revisions"}],"predecessor-version":[{"id":6648,"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=\/wp\/v2\/posts\/6633\/revisions\/6648"}],"wp:attachment":[{"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/madnesslabo.net\/utage\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}