コンテンツにスキップ

アプリ用データの作成 Creating app data

作業フォルダ に、ポーズ用の AnimationClip.anim)が入っているフォルダを指定します。
このフォルダ配下が、データ作成・管理・アップロードの対象範囲になります。

VSnap アプリが実際に使うのは PosePoseGroup のアセットです。

1 つのポーズを表す ScriptableObject です。主な内容は次のとおりです。

項目内容
poseNameアプリ上で表示するポーズ名
animation再生する AnimationClip への参照
thumbnail一覧などで使うサムネイル画像(任意)

作成 を実行すると、各 AnimationClip ごとに、同じフォルダへ {クリップ名}_Pose.asset が作られます。
つまり 1 クリップ = 1 Pose です。

複数の Pose をひとまとめにした ScriptableObject です。アプリでは「ポーズのカテゴリ・グループ」として扱われます。

項目内容
groupNameグループの表示名
posesこのグループに含める Pose アセットのリスト

作成 では、同じフォルダにある Pose を 1 つの PoseGroup にまとめます
フォルダ名の階層は groupName に反映されます(例: 作業フォルダから見て Dance/WaveDance_Wave)。

AnimationClip(.anim)
↓ 作成
Pose.asset(Example_Pose.asset など) … 1 ポーズ
↓ 同じフォルダ内でまとめる
PoseGroup.asset(Dance_Wave.asset など) … ポーズのグループ
↓ 管理で選択 → アップロード
PoseLibrary(アプリに配信するライブラリ)
  • Pose が「個々のポーズ」、PoseGroup が「その入れ物(フォルダ単位のまとまり)」です。
  • アップロード時は、管理リストでチェックした PoseGroup だけがライブラリに含まれます。
  • 同じ Pose を複数の PoseGroup から参照することもできます。

アプリ用データ生成 セクションで、次の設定を行います。

項目説明
既存のアプリ用データを更新オンにすると、既にある *_Pose.asset や PoseGroup を上書き更新します。オフのときは既存ファイルはスキップされます。
サムネイル生成オンにすると、各 Pose 用の PNG サムネイルも作成します。

作成 を押すと、作業フォルダ配下の AnimationClip を再帰的に走査し、次を行います。

  • 各クリップと同じフォルダに {クリップ名}_Pose.asset を作成(サムネイル生成オン時は {クリップ名}_Pose.png も)
  • フォルダごとに PoseGroup アセットを作成または更新
  • Example.animExample_Pose.asset(サムネイル生成オン時は Example_Pose.png も)
  • フォルダ Dance/Wave 内のクリップ群 → PoseGroup 名 Dance_Wave のアセット(例: Dance_Wave.asset

Set Working folder to the directory that contains your pose AnimationClip (.anim) files.
Everything under this folder is in scope for creation, management, and upload.

The VSnap app consumes Pose and PoseGroup assets. They are built from Unity AnimationClip (.anim) files.

A ScriptableObject that represents a single pose:

FieldRole
poseNameLabel shown in the app
animationReference to the AnimationClip to play
thumbnailOptional preview image

When you click Create, the tool writes {clipName}_Pose.asset next to each clip — one clip, one Pose.

A ScriptableObject that groups multiple Poses (a category in the app):

FieldRole
groupNameDisplay name for the group
posesList of Pose assets in this group

Create builds one PoseGroup per folder, collecting every Pose in that folder.
Folder hierarchy becomes groupName (e.g. Dance/Wave under the working folder → Dance_Wave).

AnimationClip (.anim)
↓ Create
Pose.asset (e.g. Example_Pose.asset) … one pose
↓ grouped per folder
PoseGroup.asset (e.g. Dance_Wave.asset) … pose group
↓ select in Management → Upload
PoseLibrary (bundle shipped to the app)
  • Pose = an individual pose; PoseGroup = the container (one per folder).
  • Only checked PoseGroups are packaged when you upload.
  • The same Pose asset may appear in more than one PoseGroup.

In the App data generation section, configure:

OptionDescription
Update existing app dataWhen enabled, overwrites existing *_Pose.asset and PoseGroup assets. When disabled, existing files are skipped.
Generate thumbnailsWhen enabled, creates a PNG thumbnail per Pose.

Click Create to recursively scan AnimationClip assets under the working folder and:

  • Create {clipName}_Pose.asset beside each clip (and {clipName}_Pose.png when thumbnails are enabled)
  • Create or update one PoseGroup asset per folder
  • Example.animExample_Pose.asset (plus Example_Pose.png when thumbnails are on)
  • Clips under Dance/Wave/ → PoseGroup named Dance_Wave (e.g. Dance_Wave.asset)