プロパティータイプ
説明
Property Type (プロパティータイプ) は、グラフ内で使用するために Blackboard 上で定義できる Properties のタイプです。Properties は、シェーダーを使用する マテリアル の Inspector でアクセスできます。
各プロパティーには Data Type (データ型) が関連付けられています。詳細は データ型 を参照してください。
共通パラメーター
全てのプロパティーは、その データタイプ ごとの固有の値のほかに、以下のパラメーターを持っています。
Name |
型 |
説明 |
Display Name |
String |
プロパティーの表示名です。 |
Exposed |
Boolean |
true の場合、マテリアルの Inspectpr 内でこのプロパティーがアクセス可能になります。 |
Reference Name |
String |
シェーダー内で使用される、プロパティーの内部的な名前です。 |
Reference Name パラメーターを上書きする場合は、以下の条件に注意してください。
- Reference Name がアンダースコアから開始していない場合、自動的にアンダースコアが付加されます。
- HLSL がサポートしない文字が Reference Name に含まれている場合、その文字は削除されます。
- デフォルトの Reference Name に戻すには、その上を右クリックし、Reset Reference を選択してください。
Vector 1
Vector 1 の値を定義します。
データ型 |
モード |
Vector 1 |
Default、Slider、Integer |
Default
マテリアルの Inspector 内にスカラー入力フィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 1 |
Property のデフォルト値です。 |
Slider
マテリアルの Inspector 内にスライダーフィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 1 |
Property のデフォルト値です。 |
Min |
Vector 1 |
スライダーの最小値です。 |
Max |
Vector 1 |
スライダーの最大値です。 |
Integer
マテリアルの Inspector に整数入力フィールドを表示します。
フィールド |
型 |
説明 |
Default |
Integer |
Property のデフォルト値です。 |
Vector 2
Vector 2 の値を定義します。マテリアルの Inspector 内の、z と w の成分が使用されていない箇所に、Vector 4 入力フィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 2 |
Property のデフォルト値です。 |
Vector 3
Vector 3 の値を表示します。マテリアルの Inspector 内の、w の成分が使用されていない箇所に Vector 4 入力フィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 3 |
Property のデフォルト値です。 |
Vector 4
Vector 4 の値を定義します。マテリアルの Inspector に Vector 4 入力フィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 4 |
Property のデフォルト値です。 |
Color
Color の値を定義します。
データ型 |
モード |
Color |
Default、HDR |
Default
マテリアルの Inspector に sRGB カラーフィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 4 |
Property のデフォルト値です。 |
HDR
マテリアルの Inspector に HDR カラーフィールドを表示します。
フィールド |
型 |
説明 |
Default |
Vector 4 |
Property のデフォルト値です。 |
Texture 2D
Texture 2D の値を定義します。マテリアルの Inspector に Texture タイプのオブジェクトフィールドを表示します。
データ型 |
モード |
Texture |
White、Black、Grey、Bump |
フィールド |
型 |
説明 |
Default |
Texture |
Property のデフォルト値です。 |
Texture 3D
Texture 3D の値を定義します。マテリアルの Inspector に Texture 3D タイプのオブジェクトフィールドを表示します。
フィールド |
型 |
説明 |
Default |
Texture |
Property のデフォルト値です。 |
Texture 2D Array
Texture 2D Array の値を定義します。マテリアルの Inspector に Texture 2D Array タイプのオブジェクトフィールドを表示します。
フィールド |
型 |
説明 |
Default |
Texture |
Property のデフォルト値です。 |
Cubemap
キューブマップ の値を定義します。マテリアルの Inspector に Texture タイプのオブジェクトフィールドを表示します。
フィールド |
型 |
説明 |
Default |
Cubemap |
Property のデフォルト値です。 |
Boolean
Boolean (ブーリアン型) の値を定義します。マテリアルの Inspector に ToggleUI フィールドを表示します。シェーダーの内部的にはこの値は Vector 1 であることに注意してください。Shader Graph における Boolean 型は利便性のためだけに設けられたものです。
フィールド |
型 |
説明 |
Default |
Boolean |
Property のデフォルト値です。 |
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.