{"id":542,"date":"2013-03-15T07:26:00","date_gmt":"2013-03-14T22:26:00","guid":{"rendered":"http:\/\/gam.ebb.jp\/b\/?p=542"},"modified":"2016-04-02T23:08:37","modified_gmt":"2016-04-02T14:08:37","slug":"unity401-41-cartoonfx-error","status":"publish","type":"post","link":"http:\/\/gam.ebb.jp\/b\/?p=542","title":{"rendered":"Unity4.0.1 -> 4.1 CartoonFX Error"},"content":{"rendered":"<p>Unity4.0.1 -&gt; 4.1<\/p>\n<p>CartoonFX Error:<\/p>\n<p>Assets\/Cartoon FX\/Spawn System\/CFX_SpawnSystem.cs(23,34): error CS0161: `CFX_SpawnSystem.GetNextObject(UnityEngine.GameObject, bool)&#8217;: not all code paths return a value<\/p>\n<div>\n<\/div>\n<div>\n<\/div>\n<div>\n**Change<\/div>\n<div>\n<div>\n<\/div>\n<div>\n**FROM<\/div>\n<div>\nif(activateObject)<\/div>\n<div>\n #if UNITY_4_0<\/div>\n<div>\n  returnObj.SetActive(true);<\/div>\n<div>\n #elif UNITY_3_5<\/div>\n<div>\n  returnObj.SetActiveRecursively(true);<\/div>\n<div>\n #endif<\/div>\n<div>\n<\/div>\n<div>\n**TO<\/div>\n<\/div>\n<div>\n<div>\nif(activateObject){<\/div>\n<div>\n #if UNITY_4_0<\/div>\n<div>\n  returnObj.SetActive(true);<\/div>\n<div>\n #elif UNITY_3_5<\/div>\n<div>\n  returnObj.SetActiveRecursively(true);<\/div>\n<div>\n #endif<\/div>\n<div>\n}<\/div>\n<\/div>\n<div class=\"veu_socialSet veu_socialSet-position-after veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_facebook sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/www.facebook.com\/sharer.php?src=bm&u=http%3A%2F%2Fgam.ebb.jp%2Fb%2F%3Fp%3D542&amp;t=Unity4.0.1%20-%3E%204.1%20CartoonFX%20Error%20%7C%20Gam.eBB%E3%83%96%E3%83%AD%E3%82%B0\" target=\"_blank\" onclick=\"window.open(this.href,'FBwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_fb icon_sns\"><\/span><span class=\"sns_txt\">Facebook<\/span><span class=\"veu_count_sns_fb\"><\/span><\/a><\/li><li class=\"sb_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=http%3A%2F%2Fgam.ebb.jp%2Fb%2F%3Fp%3D542&amp;text=Unity4.0.1%20-%3E%204.1%20CartoonFX%20Error%20%7C%20Gam.eBB%E3%83%96%E3%83%AD%E3%82%B0\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><li class=\"sb_hatena sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/b.hatena.ne.jp\/add?mode=confirm&url=http%3A%2F%2Fgam.ebb.jp%2Fb%2F%3Fp%3D542&amp;title=Unity4.0.1%20-%3E%204.1%20CartoonFX%20Error%20%7C%20Gam.eBB%E3%83%96%E3%83%AD%E3%82%B0\" target=\"_blank\"  onclick=\"window.open(this.href,'Hatenawindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_hatena icon_sns\"><\/span><span class=\"sns_txt\">Hatena<\/span><span class=\"veu_count_sns_hb\"><\/span><\/a><\/li><li class=\"sb_pocket sb_icon\"><a class=\"sb_icon_inner\"  href=\"\/\/getpocket.com\/edit?url=http%3A%2F%2Fgam.ebb.jp%2Fb%2F%3Fp%3D542&title=Unity4.0.1%20-%3E%204.1%20CartoonFX%20Error%20%7C%20Gam.eBB%E3%83%96%E3%83%AD%E3%82%B0\" target=\"_blank\"  onclick=\"window.open(this.href,'Pokcetwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_pocket icon_sns\"><\/span><span class=\"sns_txt\">Pocket<\/span><span class=\"veu_count_sns_pocket\"><\/span><\/a><\/li><li class=\"sb_copy sb_icon\"><button class=\"copy-button sb_icon_inner\"data-clipboard-text=\"Unity4.0.1 -> 4.1 CartoonFX Error | Gam.eBB\u30d6\u30ed\u30b0 http:\/\/gam.ebb.jp\/b\/?p=542\"><span class=\"vk_icon_w_r_sns_copy icon_sns\"><i class=\"fas fa-copy\"><\/i><\/span><span class=\"sns_txt\">Copy<\/span><\/button><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>Unity4.0.1 -&gt; 4.1 CartoonFX Error: Assets\/Cartoon FX\/Spawn System\/CFX_SpawnSystem.cs(23,34): error CS0161:  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":724,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/posts\/542"}],"collection":[{"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=542"}],"version-history":[{"count":1,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/posts\/542\/revisions"}],"predecessor-version":[{"id":669,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/posts\/542\/revisions\/669"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=\/wp\/v2\/media\/724"}],"wp:attachment":[{"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=542"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gam.ebb.jp\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}