{"action":"created","issue":{"url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/issues/185","repository_url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity","labels_url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/issues/185/comments","events_url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/issues/185/events","html_url":"https://github.com/SpriteStudio/SS5PlayerForUnity/issues/185","id":168831811,"number":185,"title":"v1.3.x 複数のモーションで同一Materialを使うには?","user":{"login":"f3b49","id":17999218,"avatar_url":"https://avatars.githubusercontent.com/u/17999218?v=3","gravatar_id":"","url":"https://api.github.com/users/f3b49","html_url":"https://github.com/f3b49","followers_url":"https://api.github.com/users/f3b49/followers","following_url":"https://api.github.com/users/f3b49/following{/other_user}","gists_url":"https://api.github.com/users/f3b49/gists{/gist_id}","starred_url":"https://api.github.com/users/f3b49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f3b49/subscriptions","organizations_url":"https://api.github.com/users/f3b49/orgs","repos_url":"https://api.github.com/users/f3b49/repos","events_url":"https://api.github.com/users/f3b49/events{/privacy}","received_events_url":"https://api.github.com/users/f3b49/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"SpriteStudio","id":5088152,"avatar_url":"https://avatars.githubusercontent.com/u/5088152?v=3","gravatar_id":"","url":"https://api.github.com/users/SpriteStudio","html_url":"https://github.com/SpriteStudio","followers_url":"https://api.github.com/users/SpriteStudio/followers","following_url":"https://api.github.com/users/SpriteStudio/following{/other_user}","gists_url":"https://api.github.com/users/SpriteStudio/gists{/gist_id}","starred_url":"https://api.github.com/users/SpriteStudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpriteStudio/subscriptions","organizations_url":"https://api.github.com/users/SpriteStudio/orgs","repos_url":"https://api.github.com/users/SpriteStudio/repos","events_url":"https://api.github.com/users/SpriteStudio/events{/privacy}","received_events_url":"https://api.github.com/users/SpriteStudio/received_events","type":"User","site_admin":false},"assignees":[{"login":"SpriteStudio","id":5088152,"avatar_url":"https://avatars.githubusercontent.com/u/5088152?v=3","gravatar_id":"","url":"https://api.github.com/users/SpriteStudio","html_url":"https://github.com/SpriteStudio","followers_url":"https://api.github.com/users/SpriteStudio/followers","following_url":"https://api.github.com/users/SpriteStudio/following{/other_user}","gists_url":"https://api.github.com/users/SpriteStudio/gists{/gist_id}","starred_url":"https://api.github.com/users/SpriteStudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpriteStudio/subscriptions","organizations_url":"https://api.github.com/users/SpriteStudio/orgs","repos_url":"https://api.github.com/users/SpriteStudio/repos","events_url":"https://api.github.com/users/SpriteStudio/events{/privacy}","received_events_url":"https://api.github.com/users/SpriteStudio/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-02T08:51:37Z","updated_at":"2016-08-02T20:52:05Z","closed_at":null,"body":"お世話になっております。\r\n複数のモーションで同一Materialを使いたいと思っております。\r\n例えば、エフェクトモーションとかです。\r\n\r\n現状ですと複数のSpriteStudioモーションデータは\r\nそれぞれロード時に別々のMaterialが生成されると思います。\r\nできればロード時に１つのMaterialを参照するようにしたいのですが、いい方法があれば\r\n教えてほしいです。\r\n\r\nよろしくお願いいたします。"},"comment":{"url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/issues/comments/237039742","html_url":"https://github.com/SpriteStudio/SS5PlayerForUnity/issues/185#issuecomment-237039742","issue_url":"https://api.github.com/repos/SpriteStudio/SS5PlayerForUnity/issues/185","id":237039742,"user":{"login":"MasamiYitsuse","id":5625230,"avatar_url":"https://avatars.githubusercontent.com/u/5625230?v=3","gravatar_id":"","url":"https://api.github.com/users/MasamiYitsuse","html_url":"https://github.com/MasamiYitsuse","followers_url":"https://api.github.com/users/MasamiYitsuse/followers","following_url":"https://api.github.com/users/MasamiYitsuse/following{/other_user}","gists_url":"https://api.github.com/users/MasamiYitsuse/gists{/gist_id}","starred_url":"https://api.github.com/users/MasamiYitsuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasamiYitsuse/subscriptions","organizations_url":"https://api.github.com/users/MasamiYitsuse/orgs","repos_url":"https://api.github.com/users/MasamiYitsuse/repos","events_url":"https://api.github.com/users/MasamiYitsuse/events{/privacy}","received_events_url":"https://api.github.com/users/MasamiYitsuse/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T20:52:05Z","updated_at":"2016-08-02T20:52:05Z","body":"f3b49様\r\n\r\nお世話になっております。\r\n余談的な付記となりますが……。\r\n\r\nまた、もう一つの方法のご提案として、（これもまたもし可能であるなら……ですが）\r\nエディタ上で特段のマテリアルなどの交換を行う必要がない場合等でしたら……\r\n\r\n・マテリアルテーブルをプログラム内などにstaticなどで持ってしまっておき\r\n・アニメーションデータprefabの「マテリアルテーブルの全マテリアルをNone(null)とする」か「テーブル自体をnullに書き変えてしまうエディタスクリプトなどを作成して、マテリアルへの参照をなし（null）」にしてしまい、マテリアル群を未参照オブジェクトとしてしまう\r\n\r\nというような処置を行うことで、prefabをinstantiateした後などにstaticのマテリアルテーブルをセットすることで、余分なデータをそもそも読まないことができるかと思われます（アセットバンドルやResourcesに含まれていたとしても、参照されていないので、マテリアルとテクスチャを読みにいかなくなると思われます）。\r\n※SS5PUの処理サイクル上、データを再生した後「描画処理（instantiateした処理ループのLateUpdate）」に到達する前までにマテリアルテーブルが設定が設定されていれば、大丈夫のはずです。\r\n\r\n以上となります。\r\n"}}
{"actor":{"display_login":"MasamiYitsuse"}}