0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Blender to Unity】FBXファイルエクスポート時のコレクション構造について

Last updated at Posted at 2025-01-18

BlenderからUnityにエクスポートする際、注意すべき点です。
【使用ツール】
Blender 3.6
Unity 2022.3.22

【問題点】

Blenderで作成したオブジェクトをFBX形式でエクスポート・Unityにインポートした際、Blenderのコレクション構造が引き継がれません。

image.png
(Blenderで作成したコレクション構造では、「Collection」内にCube1・2、「Collection2」内にCube3が格納されています)

image.png
(Blenderで「test.fbx」としてエクスポート・Unityにインポートした際、「test」配下にCube1・2・3が格納されています)

【回答】

Blenderでコレクションごとにエクスポートする必要があります。

前提として、Blenderで作成したオブジェクトをFBX形式でエクスポートし、Unityにインポートするとファイル1つにつき1つのモデルとして扱われます。そのため、コレクション構造は引き継がれません。
(※なお、1つのモデルとして扱われるというのは、1つのEmpty内にBlenderのオブジェクトが格納されることを意味します。上記例でいうと、「test」と命名されたEmptyの中に、Cube1・2・3が格納されています。)

【準備】

エクスポートするオブジェクトごとにコレクションを作成します。

別のコレクションに格納するオブジェクトを選択し、画面上部のObject > Collection > Move to Collectionの順にクリックします(ショートカットする場合は、オブジェクトを選択した状態でMキーを押下)。

image.png

+New Collectionを押して、新しいコレクションを作成します。
image.png

すると、新しいコレクションが作成されます。
image.png

【手順】

①エクスポートするコレクションに格納されたオブジェクトをすべて選択しまう。

image.png

②File > Export > FBX(.fbx)を選択します。

image.png

③「Limit to」で「Selected Object」のチェックボックスを選択し、それ以外のチェックボックスを外します。その後、Export FBXを押下します。

image.png
※それ以外の設定については、自由に変更して問題ありません。

④Unityにモデルをインポートすると、選択したコレクションのオブジェクトのみがインポートされていることが確認できます。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?