はじめに

この記事はUnity アセット真夏のアドベントカレンダー 2021 Summer!の13日目の記事になります

https://assetstore.info/eventandcontest/adventcalendar/summer-advent-calendar-2021/

Unityのアセットストアには高品質なモデルデータも販売されています 今回紹介するのは、まさに高品質なNinjaのアセット、Ninja Pack – PBR を紹介します

Ninja Pack - PBR

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e592d392-919d-4830-ae57-755da6d5f6b5/スクリーンショット_2021-08-09_17.00.15.png

うーん。まさにNinja。すばらしいアセット お値段も2021/08/13現在**$5.49**と大変お安い

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d8e70a82-de2a-44f6-bce2-387237737fd9/スクリーンショット_2021-08-09_16.40.35.png

インポートするとこんな感じです。このカラフルさ。理想的なNinjaです

ただ、この高品質な3DモデルであるNinja Pack – PBRですが、大きな問題が一つあります ストアの公式ページでもありますが、 Character humanoid ready rigged but there is no animation in this package. つまり「このパッケージにはアニメーションが含まれていません」という意味です せっかくのNinjaですが、このままでは凧に貼り付けて飛ばすぐらいしかできません こういったアセットも、活用できるのがAssetStoreです

Unityちゃんのモーションをアタッチしてみる

まず、高品質なアニメーションと言えば、Unity公式の**Unity-Chan! Model**があります

Unity-Chan! Model | 3D キャラクター | Unity Asset Store

余談ですが、今日はUnityちゃんの誕生日です。カレーコロッケを食べましょう

もはや説明不要ですが、このNinjaのアセットもHumanoidで作られているので、そのまま使えます まず、**Unity-Chan! Model**をインポートして、忍者を以下の設定にします