2D Renderer Data アセット

2D Renderer Data アセットには、2D Lights の Lit スプライトへの適用方法に影響を与える設定が含まれています。HDR エミュレーションスケール を使用してライトの HDR ライティングのエミュレーション方法を設定したり、独自の ライトブレンドスタイル をカスタマイズしたりできます。プロパティとオプションの詳細については、それぞれのページを参照してください。
Default Material Type

Unity では、スプライトの作成時に、選択した Default Material Type のマテリアルがスプライトに割り当てられます。利用できるオプションのプロパティと機能は以下のとおりです。
Lit: Lit タイプのマテリアルが割り当てられます (デフォルトのマテリアル: Sprite-Lit-Default)。2D Lights はこのタイプのマテリアルに反映されます。
Unlit: Unlit タイプのマテリアルが割り当てられます (デフォルトのマテリアル: Sprite-Lit-Default)。2D Lights はこのタイプのマテリアルには反映されません。
Custom: Custom タイプのマテリアルが割り当てられます。このオプションを選択すると、Default Custom Material ボックスが表示されます。このボックスに目的のマテリアルを割り当てます。

Depth/Stencil Buffer の使用
このオプションはデフォルトで有効です。このオプションをオフにすると、Depth/Stencil Buffer は無効になります。無効にすると、特にモバイルプラットフォームで、プロジェクトのパフォーマンスが向上する可能性があります。Depth/Stencil Buffer を必要とする機能 (スプライトマスク など) を使用しない場合は、このオプションをオフにする必要があります。
Camera Sorting Layer Texture
2D Renderer Data は、カスタムシェーダーで使用するシェーダー変数 CameraSortingLayerTexture
をどのようにフィードするかを指定します。このデータは、同じフレーム内で、以下のレイヤーで使用する必要があります。
Foremost Sorting Layer
指定したテクスチャで使用するためにキャプチャされたすべてのレイヤーが、一番後ろのレイヤーから Foremost Sorting Layer で指定したレイヤーまで描画されます。
Downsampling Method
ダウンサンプリングを使用すると、CameraSortingLayerTexture
で使用されるテクスチャの解像度が下がります。オプションは、None、2x Bilinear、4x Box、4x Bilinear です。
Renderer Features
2D Renderer は、URP の Renderer Feature をサポートしています。この機能の設定は、2D ビルトインパスがキューに追加される前に呼び出されます。詳細については、URP の Renderer Feature のドキュメントを参照してください。
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.