{"id":148513,"date":"2022-04-05T15:14:55","date_gmt":"2022-04-05T06:14:55","guid":{"rendered":"https:\/\/www.webtech.co.jp\/help\/?page_id=148513"},"modified":"2022-04-05T15:14:55","modified_gmt":"2022-04-05T06:14:55","slug":"unity_continuous_play","status":"publish","type":"page","link":"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio7\/guide\/output\/unity_continuous_play\/","title":{"rendered":"\u8907\u6570\u306esspj\u3092Unity\u4e0a\u3067\u9023\u7d9a\u518d\u751f\u3059\u308b"},"content":{"rendered":"<p>\u8907\u6570\u306esspj\u3092\u3001SS6Player 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.6.0<\/li>\n<li><strong>\u518d\u751f\u3059\u308bUnity\u306e\u74b0\u5883<\/strong><br \/>\n SS6Player for Unity v1.0.4<br \/>\n Unity 2017.3.0f3<\/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\">\u65b0\u3057\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/a><\/li>\n<li><a href=\"#make_folder\">\u5404\u7a2e\u30d5\u30a9\u30eb\u30c0\u3092\u6e96\u5099<\/a><\/li>\n<li><a href=\"#import_sspj\">sspj\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/a><\/li>\n<li><a href=\"#add_script\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3059\u308b<\/a><\/li>\n<li><a href=\"#camera_setting\">sspj\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u30ab\u30e1\u30e9\u3092\u8a2d\u7f6e<\/a><\/li>\n<li><a href=\"#control_anime\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3059\u308b<\/a><\/li>\n<li><a href=\"#play\">\u518d\u751f<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#source\">\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a>\n<ul>\n<li><a href=\"#moviedemo_script\">MovieDemoVer6.cs<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#related_page\">\u95a2\u9023\u30da\u30fc\u30b8<\/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>\u65b0\u3057\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/h3>\n<p><span>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<\/span><\/p>\n<h4>SS6Player for Unity \u3092\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0<\/h4>\n<p>SS6Player for Unity \u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u52a0\u3048\u307e\u3059\u3002<br \/>\n \u8a73\u3057\u3044\u65b9\u6cd5\u306f\u300cUnity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u300d\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\/guide\/output6\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\"><a id=\"make_folder\"><\/a>\u5404\u7a2e\u30d5\u30a9\u30eb\u30c0\u3092\u6e96\u5099<\/h3>\n<p>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u6d41\u3059\u4ed5\u7d44\u307f\u3092\u5165\u308c\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u3051\u307e\u3059\u3002<\/p>\n<p>Project\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30e1\u30cb\u30e5\u30fc\u306e\u300cCreate\u300d\u2192\u300cFolder\u300d\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_04.png\" alt=\"\" width=\"556\" height=\"520\" class=\"alignnone size-full wp-image-55969\" \/><\/p>\n<p>\u4eca\u56de\u306f Assets \u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b<br \/>\n Demo \u3068\u3044\u3046\u540d\u79f0\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d0d\u3081\u308b\u30d5\u30a9\u30eb\u30c0\u3068\u3001\u30ea\u30bd\u30fc\u30b9\u3092\u7d0d\u3081\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n \u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Script<br \/>\n \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d0d\u3081\u307e\u3059<\/li>\n<li>Resources<br \/>\n \u30ea\u30bd\u30fc\u30b9\u3092\u7d0d\u3081\u307e\u3059<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_03.png\" alt=\"\" width=\"506\" height=\"356\" class=\"alignnone size-full wp-image-55968\" \/><\/p>\n<h3><a id=\"import_sspj\"><\/a>sspj\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/h3>\n<p>\u518d\u751f\u3057\u305f\u3044sspj\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n \u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u65b9\u6cd5\u306f\u300cUnity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b\u300d\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\/guide\/output6\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><\/li>\n<\/ul>\n<p>\u30a4\u30f3\u30dd\u30fc\u30c8\u5148\u306f\u3001\u5148\u7a0b\u6e96\u5099\u3057\u305f<br \/>\n <em>Assets\/Demo\/Resources<\/em><br \/>\n \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u9023\u7d9a\u3067\u518d\u751f\u3059\u308bsspj\u30922\u3064\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>tenohira_no_bouken.sspj<\/li>\n<li>fire_sword.sspj<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_02.png\" alt=\"\" width=\"506\" height=\"356\" class=\"alignnone size-full wp-image-55977\" \/><\/p>\n<h3><a id=\"add_script\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3059\u308b<\/h3>\n<p>\u6b21\u306b\u518d\u751f\u3059\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n \u4eca\u56de\u306f\u300cMovieDemoVer.6.cs\u300d\u3068\u3044\u3046\u540d\u79f0\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3092<br \/>\n <em>Assets\/Demo\/Script<\/em><br \/>\n \u3092\u958b\u304d\u3001\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>MovieDemoVer6 \u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_01.png\" alt=\"\" width=\"554\" height=\"360\" class=\"alignnone size-full wp-image-55976\" \/><\/p>\n<h3><a id=\"camera_setting\"><\/a>sspj\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u30ab\u30e1\u30e9\u3092\u8a2d\u7f6e<\/h3>\n<p>Unity \u306e Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306b\u30ab\u30e1\u30e9\u3092\u8ffd\u52a0\u3057\u307e\u3059<\/p>\n<p><em>Assets\/SpriteStudio\/Camera\/Camera2D Pixel (720p)<\/em><br \/>\n \u306e1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_05.png\" alt=\"\" width=\"546\" height=\"509\" class=\"alignnone size-full wp-image-55970\" \/><\/p>\n<h3><a id=\"control_anime\"><\/a>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3059\u308b<\/h3>\n<table>\n<tbody>\n<tr>\n<td>\n<p>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<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_011.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_011.png\" alt=\"\" width=\"277\" height=\"518\" class=\"alignnone size-full wp-image-55980\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u4eca\u56de\u306f\u540d\u524d\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u30af\u30ea\u30c3\u30af\u3057\u3066\u540d\u79f0\u3092\u300cMainObject\u300d\u306b\u5909\u3048\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_012.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_012.png\" alt=\"\" width=\"273\" height=\"205\" class=\"alignnone size-full wp-image-55979\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p><em>Assets\/Demo\/Script<\/em>\u3092\u958b\u304d\u3001\u5148\u307b\u3069\u7d44\u307f\u8fbc\u3093\u3060 MovieDemoVer6 \u3092\u30c9\u30e9\u30c3\u30b0\u3057\u3066\u3001Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306e MainObject \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 Add Component \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 Ver6 \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\/12\/v6_unity_continuous_play_06.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_06.png\" alt=\"\" width=\"505\" height=\"501\" class=\"alignnone size-full wp-image-55971\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>Hierarchy \u30a6\u30a3\u30f3\u30c9\u30a6 \u306e MainObject \u3092\u30af\u30ea\u30c3\u30af\u3057\u3001Inspector\u306bMovie Demo Ver 6(Script)\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u8868\u793a\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n MainObject \u306e Inspector \u306b\u3042\u308b Movie Demo Ver 6(Script)\u9805\u76ee\u306b <em>File Name List<\/em> \u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_07.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_07.png\" alt=\"\" width=\"277\" height=\"312\" class=\"alignnone size-full wp-image-55972\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>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\/12\/v6_unity_continuous_play_08.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_08.png\" alt=\"\" width=\"278\" height=\"290\" class=\"alignnone size-full wp-image-55973\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u305d\u308c\u305e\u308c\u306b\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 <em>Script_SpriteStudio6_Root<\/em> \u3092Script\u4e0a\u3067\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001\u5404\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306ePrefabAnimation\u306e\u4e2d\u306b\u3042\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001<br \/>\n \u300cElement 0\u300d\u306b<br \/>\n \u300cfire_sword\/PrefabAnimation\/fire_sword\u300d<br \/>\n \u300cElement 1\u300d\u306b<br \/>\n \u300ctenohira_no_bouken\/PrefabAnimation\/Tenohira_no_Bouken\u300d<br \/>\n \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\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<\/p>\n<p>\u203bPrefabAnimation\u306e\u4e2d\u306b\u3042\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u6307\u5b9a\u3059\u308b\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001GitHub\u306e\u300c<a href=\"https:\/\/github.com\/SpriteStudio\/SS6PlayerForUnity\/wiki\/%E3%82%A2%E3%83%8B%E3%83%A1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E5%86%8D%E7%94%9F#%E5%88%B6%E5%BE%A1%E7%94%A8%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AE%E3%83%97%E3%83%AC%E3%83%8F%E3%83%96%E3%82%92%E5%AE%9F%E4%BD%93%E5%8C%96%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AE%E6%B3%A8%E6%84%8F%E7%82%B9\" id=\"op_ss6p_unity_cp\" class=\"gtmEvent\">\u5236\u5fa1\u7528\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ec\u30cf\u30d6\u3092\u5b9f\u4f53\u5316\u3059\u308b\u3068\u304d\u306e\u6ce8\u610f\u70b9<\/a>\u300d\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/td>\n<td><a href=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_09.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_09.png\" alt=\"\" width=\"280\" height=\"317\" class=\"alignnone size-full wp-image-55974\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><a id=\"play\"><\/a>\u518d\u751f<\/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><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webtech.co.jp\/help\/wp-content\/uploads\/2017\/12\/v6_unity_continuous_play_010.png\" alt=\"\" width=\"548\" height=\"283\" class=\"alignnone size-full wp-image-55975\" \/><\/p>\n<h2><a id=\"source\"><\/a>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h2>\n<p><span>\u4eca\u56de\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u5236\u5fa1\u306b\u4f7f\u7528\u3057\u305f\u300cMovieDemoVer6.cs\u300d\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/span><\/p>\n<h3><span><a id=\"moviedemo_script\"><\/a>MovieDemoVer6.cs<\/span><\/h3>\n<pre>using System.Collections;\r\nusing System.Collections.Generic;\r\nusing UnityEngine;\r\n\r\npublic class MovieDemoVer6 : MonoBehaviour\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_SpriteStudio6_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 = Script_SpriteStudio6_Root.Parts.RootGet(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\/\/\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(-1, 0, 1);\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_SpriteStudio6_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><a id=\"related_page\"><\/a>\u95a2\u9023\u30da\u30fc\u30b8<\/h2>\n<ul class=\"link\">\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/reference\/ref_ss6punity_warning\/\">SS6Player for Unity \u3067\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u969b\u306e\u8b66\u544a\u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044<\/a><br \/><span style=\"font-size: small;\">\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u969b\u306b\u767a\u751f\u3059\u308b\u8b66\u544a\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity\/\">Unity\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u8868\u793a\u3059\u308b<\/a><br \/><span style=\"font-size: small;\">SpriteStudio Ver.6\u3067\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u3092SS6Player For Unity\u3067Unity\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity_chara_action\/\">Unity\u3067\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u52d5\u304b\u3059\u65b9\u6cd5<\/a><br \/><span style=\"font-size: small;\">\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3001Unity\u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5207\u308a\u66ff\u3048\u306a\u3069\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><a href=\"https:\/\/www.webtech.co.jp\/help\/ja\/spritestudio\/guide\/output6\/unity_native\/\">Unity\u306e\u6a5f\u80fd\u306b\u5909\u63db\u3057\u3066\u4f7f\u7528\u3059\u308b<\/a><br \/><span style=\"font-size: small;\">sspj\u3092Unity\u306e\u6a19\u6e96\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u5f62\u306b\u5909\u63db\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/SpriteStudio\/SS6PlayerForUnity\/wiki\" class=\"su-button su-button-style-default gtmEvent\" style=\"color:#ffffff;background-color:#be80d2;border-color:#9867a8;border-radius:5px\" target=\"_self\" id=\"op_ss6p_unity\"><span style=\"color:#ffffff;padding:7px 20px;font-size:16px;line-height:24px;border-color:#d2a7e0;border-radius:5px;text-shadow:0px 0px 0px #000000\"><i class=\"sui sui-github\" style=\"font-size:16px;color:#ffffff\"><\/i> SS6Player For Unity<\/span><\/a><br \/>\n \u3000\u6700\u65b0\u7248\u3001\u8cea\u554f\u30fb\u8981\u671b\u306f GitHub\u3078<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8907\u6570\u306esspj\u3092\u3001SS6Player 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.6.0 \u518d\u751f\u3059\u308bU..<\/p>\n","protected":false},"author":33,"featured_media":0,"parent":148502,"menu_order":40,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"tags":[],"class_list":["post-148513","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/148513","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=148513"}],"version-history":[{"count":0,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/148513\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/pages\/148502"}],"wp:attachment":[{"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/media?parent=148513"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webtech.co.jp\/help\/wp-json\/wp\/v2\/tags?post=148513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}