{"id":34289,"date":"2017-07-28T10:15:24","date_gmt":"2017-07-28T01:15:24","guid":{"rendered":"http:\/\/www.webtech.co.jp\/help\/?page_id=34289"},"modified":"2021-05-24T10:59:25","modified_gmt":"2021-05-24T01:59:25","slug":"unity_continuous_play","status":"publish","type":"page","link":"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/spritestudio5\/guide5\/output5\/unity_continuous_play\/","title":{"rendered":"\u3010Ver.5.8\u3011\u8907\u6570\u306esspj\u3092Unity\u4e0a\u3067\u9023\u7d9a\u518d\u751f\u3059\u308b"},"content":{"rendered":"<p>\u8907\u6570\u306esspj\u3092\u3001SS5Player for Unity\u3092\u4f7f\u7528\u3057\u3066\u9023\u7d9a\u3067\u518d\u751f\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059<\/p>\n<p>\u4eca\u56de\u4f7f\u7528\u3059\u308b\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210<\/strong><br \/>\n OPTPiX SpriteStudio Ver.5.8<\/li>\n<li><strong>\u518d\u751f\u3059\u308bUnity\u306e\u74b0\u5883<\/strong><br \/>\n SS5Player for Unity v1.5.16<br \/>\n Unity 2017.1<\/li>\n<\/ul>\n<h4>\u76ee\u6b21<\/h4>\n<ul>\n<li><a href=\"#procedure\">\u4f5c\u6210\u624b\u9806<\/a>\n<ul>\n<li><a href=\"#make_project\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/a><\/li>\n<li><a href=\"#make_folder\">\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b<\/a><\/li>\n<li><a href=\"#sspj_import\">sspj\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/a><\/li>\n<li><a href=\"#preparation_script\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6e96\u5099\u3059\u308b<\/a><\/li>\n<li><a href=\"#camera_setting\">\u30ab\u30e1\u30e9\u306e\u8a2d\u5b9a\u3092\u3059\u308b<\/a><\/li>\n<li><a href=\"#anime_control\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5236\u5fa1\u3092\u7d44\u307f\u8fbc\u3080<\/a><\/li>\n<li><a href=\"#anime_setting\">\u8868\u793a\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b<\/a><\/li>\n<li><a href=\"#play\">\u518d\u751f\u3059\u308b<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#script\">\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a><\/li>\n<\/ul>\n<h2><a id=\"procedure\"><\/a>\u4f5c\u6210\u624b\u9806<\/h2>\n<p>\u4e8b\u524d\u306b\u518d\u751f\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092SpriteStudio\u3067\u4f5c\u6210\u6e08\u3067\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n SpriteStudio\u3092\u7528\u3044\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u672c\u30d8\u30eb\u30d7\u30bb\u30f3\u30bf\u30fc\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/starter\/\">\u306f\u3058\u3081\u3066\u306e\u65b9<\/a><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/\">\u30e6\u30fc\u30b6\u30fc\u30ac\u30a4\u30c9<\/a><\/li>\n<\/ul>\n<h3><a id=\"make_project\"><\/a>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>Unity\u3092\u958b\u304d\u3001File\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300cNew Project\u300d\u3092\u9078\u629e\u3057\u3001\u65b0\u3057\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e2d\u306b\u3001SS5Player for Unity\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n \u8a73\u3057\u3044\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/spritestudio5\/guide5\/output5\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><\/li>\n<\/ul>\n<h3><a id=\"make_folder\"><\/a>\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u4f5c\u6210\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u3001\u9023\u7d9a\u518d\u751f\u306e\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u683c\u7d0d\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n \u4eca\u56de\u306f\u300cAssets\u300d\u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u300cDemo\u300d\u3068\u3044\u3046\u540d\u79f0\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p>1.Project\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u300cAssets\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u3066\u300cCreate\u300d\u304b\u3089\u300cFolder\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u300cDemo\u300d\u3068\u3044\u3046\u540d\u79f0\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_01.png\" alt=\"\" width=\"628\" height=\"414\" class=\"alignnone size-full wp-image-34299\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_01.png 628w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_01-624x411.png 624w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>2.\u3053\u306e\u300cDemo\u300d\u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d0d\u3081\u308b\u300cScript\u300d\u3001\u30ea\u30bd\u30fc\u30b9\u3092\u7d0d\u3081\u308b\u300cResources\u300d\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/td>\n<td><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_02.png\" alt=\"\" width=\"212\" height=\"279\" class=\"alignnone size-full wp-image-34300\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a id=\"sspj_import\"><\/a>sspj\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/h3>\n<p>\u518d\u751f\u3057\u305f\u3044\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306esspj\u3092Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n \u30a4\u30f3\u30dd\u30fc\u30c8\u5148\u306f\u300cResources\u300d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>sspj\u3092Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/spritestudio5\/guide5\/output5\/unity\/#Unity_sspj\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b &#8211; sspj\u3092Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/a><\/li>\n<\/ul>\n<h3><a id=\"preparation_script\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6e96\u5099\u3059\u308b<\/h3>\n<p>\u9023\u7d9a\u518d\u751f\u306e\u5236\u5fa1\u3092\u884c\u3046\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>Project\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u300cScript\u300d\u3092\u6307\u5b9a\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c9\u30e9\u30c3\u30b0\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n \u4eca\u56de\u306f\u300cMovieDemo.cs\u300d\u3068\u3044\u3046C#\u3067\u4f5c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>SpriteStudio\u3067\u4f5c\u6210\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u518d\u751f\u3001\u518d\u751f\u7d42\u4e86\u6642\u306b\u6b21\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u518d\u751f\u3068\u3044\u3046\u52d5\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"#script\">\u300cMovieDemo.cs\u300d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u8a73\u7d30\u306f\u3053\u3061\u3089<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_03a.png\" alt=\"\" width=\"410\" height=\"265\" class=\"alignnone size-full wp-image-34311\" \/><\/p>\n<h3><a id=\"camera_setting\"><\/a>\u30ab\u30e1\u30e9\u306e\u8a2d\u5b9a\u3092\u3059\u308b<\/h3>\n<p>\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30ab\u30e1\u30e9\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>1.Project\u30a6\u30a3\u30f3\u30c9\u30a6\u304b\u3089\u300cSpriteStudio\u300d\u30a2\u30bb\u30c3\u30c8\u3092\u958b\u304d\u3001\u300cBaseSet_Ver_1_3\u300d\u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/td>\n<td rowspan=\"2\" style=\"width: 275.483px;\"><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_04.png\" alt=\"\" width=\"423\" height=\"581\" class=\"alignnone size-full wp-image-34293\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>2.\u300cCamera_Ortho\uff08720\uff50\uff09\u300d\u3068\u300cView\uff08Manager-Draw\uff09\u300d\u3092Hierarchy\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30c9\u30e9\u30c3\u30b0\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">3.Hierarchy\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u305f\u300cView\uff08Manager-Draw\uff09\u300d\u3092\u9078\u629e\u3057\u3001Inspector\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\n<p>4.\u300cScript_SpriteStudio_Manager\u300d\u306e\u4e2d\u306e\u300cCamera\u300d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n Camera\u6b04\u306e\u53f3\u306b\u3042\u308b\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u3001Select Camera\u30c0\u30a4\u30a2\u30ed\u30b0\u304b\u3089\u300cCamera_Ortho\uff08720\uff50\uff09\u300d\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Hierarchy\u30a6\u30a3\u30f3\u30c9\u30a6\u304b\u3089\u300cCamera_Ortho\uff08720\uff50\uff09\u300d\u3092Camera\u6b04\u306b\u30c9\u30e9\u30c3\u30b0\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u3082\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_05.png\" alt=\"\" width=\"290\" height=\"571\" class=\"alignnone size-full wp-image-34294\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><a id=\"anime_control\"><\/a>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5236\u5fa1\u3092\u7d44\u307f\u8fbc\u3080<\/h3>\n<table>\n<tbody>\n<tr>\n<td>\n<p>1.Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u3044\u3066\u3001Create Empty\u3092\u9078\u629e\u3001\u7a7a\u306eGameObject\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u540d\u524d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u540d\u79f0\u3092 MainObject \u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_06.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_06.png\" alt=\"\" width=\"307\" height=\"385\" class=\"alignnone size-full wp-image-34295\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>2.\u300cScript\u300d\u3092\u958b\u304d\u3001\u300cMovieDemo\u300d\u3092\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u3001Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6\u306eMainObject\u3078\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306e MainObject \u3092\u30af\u30ea\u30c3\u30af\u3001 Inspector\u3078\u8868\u793a\u3055\u308c\u305f\u300cAdd Component\u300d \u3092\u30af\u30ea\u30c3\u30af\u3002\u958b\u3044\u305f\u30d7\u30eb\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089 Scripts \u3092\u9078\u629e\u3057\u3066\u3001Movie Demo \u3092\u9078\u629e\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_07.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_07.png\" alt=\"\" width=\"400\" height=\"442\" class=\"alignnone size-full wp-image-34296\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>3.Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306e MainObject \u3092\u30af\u30ea\u30c3\u30af\u3001 Inspector\u306bMovie Demo (Script)\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u3001Rendering View \u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_08.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_08.png\" alt=\"\" width=\"670\" height=\"334\" class=\"alignnone size-full wp-image-34297\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_08.png 670w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_08-624x311.png 624w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>4.\u3053\u306e\u9805\u76ee\u3078\u3001Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6\u306e View (ManagerDraw)\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n \u3053\u308c\u3067\u63cf\u753b\u30d3\u30e5\u30fc\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_09.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_09.png\" alt=\"\" width=\"302\" height=\"291\" class=\"alignnone size-full wp-image-34298\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a id=\"anime_setting\"><\/a>\u8868\u793a\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<table>\n<tbody>\n<tr>\n<td>1.MainObject \u306e Inspector \u306b\u3042\u308b Movie Demo (Script)\u9805\u76ee\u306e\u4e2d\u306b\u3001 File Name List\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n \u3053\u306e\u9805\u76ee\u3092\u958b\u304d\u307e\u3059\u3002\u00a0<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_010.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_010.png\" alt=\"\" width=\"281\" height=\"271\" class=\"alignnone size-full wp-image-34302\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>2.Size\u3068\u3044\u3046\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u306b\u518d\u751f\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n \u3053\u3053\u3067\u306f 2\u3064\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3057\u307e\u3059\u306e\u3067\u3001 2 \u3068\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6570\u5b57\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u300cElement 0\u300d\u300cElement 1\u300d\u3068\u3044\u3046\u9805\u76ee\u304c\u5897\u3048\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_011.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_011.png\" alt=\"\" width=\"283\" height=\"382\" class=\"alignnone size-full wp-image-34303\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>3.\u300cElement 0\u300d\u306e\u9805\u76ee\u306b\u3001\u518d\u751f\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n \u3053\u3053\u3067\u306f\u518d\u751f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e Script_SpriteStudio_Root \u3092Script\u4e0a\u3067\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001\u5404\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306ePrefab \u306e\u4e2d\u306b\u3042\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<blockquote>\n<p><strong>\u518d\u751f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30b9\u306fResources\u3068\u547d\u540d\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u306e\u76f8\u5bfe\u30d1\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n<\/blockquote>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_012.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_012.png\" alt=\"\" width=\"283\" height=\"382\" class=\"alignnone size-full wp-image-34304\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u3053\u3053\u3067\u306f\u3001<\/p>\n<p>Element 0\u306b<strong>\u300ckumui_00\/Prefab\/kumui_00\u300d<\/strong><br \/>\n Element 1\u306b<strong>\u300cs_koharu_games\/Prefab\/00_preview\u300d<\/strong><\/p>\n<p>\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u53f3\u56f3\u3067\u306f\u300cs_koharu_games\/Prefab\/00_preview\u300d\u306e\u5834\u6240\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_014.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_014.png\" alt=\"\" width=\"581\" height=\"281\" class=\"alignnone size-full wp-image-34310\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a id=\"play\"><\/a>\u518d\u751f\u3059\u308b<\/h3>\n<p>Unity\u306e\u518d\u751f\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u8a2d\u5b9a\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u9806\u756a\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_013.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_013.png\" alt=\"\" width=\"974\" height=\"370\" class=\"alignnone size-full wp-image-34305\" srcset=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_013.png 974w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_013-768x292.png 768w, https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/07\/unity_demo_013-624x237.png 624w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/a><\/p>\n<h2><a id=\"script\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<p>\u4eca\u56de\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u5236\u5fa1\u306b\u4f7f\u7528\u3057\u305f\u300cMovieDemo.cs\u300d\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<h3>MovieDemo.cs<\/h3>\n<pre>using System.Collections;\r\nusing System.Collections.Generic;\r\nusing UnityEngine;\r\n\r\npublic class MovieDemo : MonoBehaviour\r\n{\r\n\t\/\/\u30a2\u30cb\u30e1\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308bView\r\n\t[SerializeField]\r\n\tpublic Script_SpriteStudio_ManagerDraw RenderingView;\r\n\r\n\t\/\/\u518d\u751f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306eresources\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30b5\u30d6\u30d1\u30b9\r\n\t[SerializeField]\r\n\tpublic string[] FileNameList;\r\n\r\n\t\/\/\u73fe\u5728\u518d\u751f\u3057\u3066\u3044\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u756a\u53f7\r\n\tprivate int m_Index;\r\n\r\n    \/\/\u30b9\u30d7\u30e9\u30a4\u30c8\u30b9\u30bf\u30b8\u30aa\u30a2\u30cb\u30e1\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\r\n\tprivate Script_SpriteStudio_Root m_ScriptRoot;\r\n\r\n\tvoid Start()\r\n\t{\r\n\t\t\/\/\u521d\u671f\u5316\r\n\t\tm_Index = 0;\r\n\t\tm_ScriptRoot = null;\r\n\t}\r\n\t\r\n\tvoid Update()\r\n\t{\r\n\t\t\/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3057\u3066\u3044\u306a\u3044\u306a\u3089\u518d\u751f\u3092\u958b\u59cb\u3059\u308b\r\n\t\tif(m_ScriptRoot == null)\r\n\t\t{\r\n\t\t\tif(m_Index &gt;= 0)\r\n\t\t\t{\r\n\t\t\t\t\/\/\u6700\u521d\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\r\n\t\t\t\tanimationStart(m_Index);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tvoid animationStart(int index)\r\n\t{\r\n\t\t\/\/\u521d\u671f\u5316\r\n\t\tm_Index = -1;\r\n\t\tm_ScriptRoot = null;\r\n\r\n\t\t\/\/\u518d\u751f\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u540d\u3092\u30ea\u30b9\u30c8\u304b\u3089\u53d6\u5f97\u3057\u3066\u518d\u751f\u3059\u308b\r\n\t\tif(FileNameList.Length &gt; 0)\r\n\t\t{\r\n\t\t\tm_Index = index % FileNameList.Length;\r\n\t\t\tstring resourceName = FileNameList[m_Index];\r\n\t\t\tif(string.IsNullOrEmpty(resourceName) == false)\r\n\t\t\t{\r\n\t\t\t\t\/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u4f53\u5316\r\n\t\t\t\tGameObject go = Instantiate(Resources.Load(resourceName), new Vector3(0, 0, 0), Quaternion.identity) as GameObject;\r\n\t\t\t\tif(go != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tm_ScriptRoot = Library_SpriteStudio.Utility.Parts.RootGetChild(go);\r\n\t\t\t\t\tif(m_ScriptRoot != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\/\/\u8868\u793a\u3059\u308b\u63cf\u753b\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u8a2d\u5b9a\r\n\t\t\t\t\t\tm_ScriptRoot.InstanceManagerDraw = RenderingView;\r\n\t\t\t\t\t\t\/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u7d42\u4e86\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u8a2d\u5b9a.\r\n\t\t\t\t\t\tm_ScriptRoot.FunctionPlayEnd = callbackPlayEnd;\r\n\t\t\t\t\t\t\/\/\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u518d\u751f\r\n\t\t\t\t\t\tm_ScriptRoot.AnimationPlay(0, 1, 0, 1.0f);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tbool callbackPlayEnd(Script_SpriteStudio_Root InstanceRoot, GameObject ObjectControl)\r\n\t{\r\n\t\t\/\/\u518d\u751f\u3057\u3066\u3044\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u64cd\u4f5c\u30af\u30e9\u30b9\u3092\u521d\u671f\u5316\r\n\t\tm_ScriptRoot = null;\r\n\r\n\t\t\/\/\u6b21\u56de\u306eUpdate\u3067\u6b21\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u958b\u59cb\r\n\t\tm_Index++;\r\n\r\n\t\t\/\/\u53e4\u3044\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306f\u30b7\u30fc\u30f3\u304b\u3089\u6d88\u3059\r\n\t\treturn false;\r\n\t}\r\n}\r\n<\/pre>\n<h2>\u95a2\u9023\u30da\u30fc\u30b8<\/h2>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/spritestudio5\/guide5\/output5\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8907\u6570\u306esspj\u3092\u3001SS5Player for Unity\u3092\u4f7f\u7528\u3057\u3066\u9023\u7d9a\u3067\u518d\u751f\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059 \u4eca\u56de\u4f7f\u7528\u3059\u308b\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002 \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210 OPTPiX SpriteStudio Ver.5.8 \u518d\u751f\u3059\u308bU..<\/p>\n","protected":false},"author":33,"featured_media":0,"parent":22415,"menu_order":50,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"tags":[],"class_list":["post-34289","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/34289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/comments?post=34289"}],"version-history":[{"count":0,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/34289\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/22415"}],"wp:attachment":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/media?parent=34289"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/tags?post=34289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}