マテリアルを持たない SpeedTree Model を Unity にインポートすると、Unity の拡散マテリアルが使用されます。モデルにマテリアルがある場合、それらをサブアセットとしてインポートします。SpeedTree モデルをインポートするときに、Materials タブを使用してマテリアルの設定を変更することができます。
Materials タブには以下のセクションがあります。
Location と Materials では、インポートしたアセット内のマテリアルをインポートするか、抽出するかを制御できます。
Remapped Materials を使うと、インポートしたマテリアルをプロジェクトの既存のマテリアルに再マッピングしたり、インポートされたマテリアルを抽出して、指定した場所に別のアセットを作成したりできます。
プレビューウィンドウに SpeedTree モデルとそのマテリアルが表示されます。
Location プロパティは、SpeedTree アセットがマテリアルにアクセスする方法を定義します。SpeedTree Materials タブの残りのプロパティは、選択したオプションによって変わります。
値 | Description |
---|---|
Use Embedded Materials | これを選択すると、インポートしたマテリアルはアセット内に保存されます。必要に応じて、インポートしたマテリアル をプロジェクトの既存マテリアルに再マッピングできます。 これはデフォルトであり、推奨されている選択です。 |
Use External Materials (Legacy) | このアセットが以前のバージョンの Unity でインポートされたことを示します。これを選択すると、Unity は自動的にマテリアルを抽出し、モデルと同じ場所にある Materials フォルダーに配置します。 |
Extract Materials ボタンをクリックして、インポートしたアセットに埋め込まれているマテリアルを抽出します。抽出するマテリアルがない場合は、グレー表示されます。
デフォルトのテクスチャを持つマテリアルを法線マップとしてインポートすると、以下のメッセージが表示されます。
Texture Importer 設定は別の Inspector ウィンドウに表示されるので、以下の方法でこれを修正できます。
このセクションには、この SpeedTree アセットの各 LOD レベルにマッピングされたマテリアルが表示されます。
アセットに使用したいマテリアルが既にある場合は、On Demand Remap を展開し、Search and Remap ボタンをクリックします。
マテリアルを再マッピングした後、Regenerate Materials ボタンをクリックして、最新のインポート設定で外部マテリアルを再インポートします。
注意 外部マテリアルを再インポートすると、マテリアルファイルに対して手動で行った変更はすべて取り消されます。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.