マテリアルクラス
This class exposes all properties from a material, allowing you to animate them.
You can also use it to set custom shader properties that can't be accessed through
the inspector (e.g. matrices).
オブジェクトにより使用されているマテリアルを取得するには Renderer.material プロパティーを使用します。
See Also: Materials, Shaders.
| color | マテリアルの色 |
| doubleSidedGI | Gets and sets whether the Double Sided Global Illumination setting is enabled for this material. |
| enableInstancing | Gets and sets whether GPU instancing is enabled for this material. |
| globalIlluminationFlags | マテリアルがライトマップとライトプローブをどのように操作するかを定義します |
| mainTexture | マテリアルのテクスチャ |
| mainTextureOffset | メインテクスチャのオフセット |
| mainTextureScale | メインテクスチャのスケール |
| passCount | マテリアルのパスの数(読み取り専用) |
| renderQueue | マテリアルのレンダーキュー |
| shader | マテリアルで使用するシェーダー |
| shaderKeywords | マテリアルに設定される追加シェーダーキーワード |
| Material |
| CopyPropertiesFromMaterial | マテリアルのプロパティーを他のマテリアルにコピーします |
| DisableKeyword | セットしたシェーダーキーワードを取り消します |
| EnableKeyword | Sets a shader keyword that is enabled by this material. |
| FindPass | Returns the index of the pass passName. |
| GetColor | 設定された名前から色を取得します |
| GetColorArray | Get a named color array. |
| GetFloat | 設定された名前から float 値を取得します |
| GetFloatArray | Get a named float array. |
| GetInt | 設定された名前から int 値を取得します |
| GetMatrix | 設定された名前から matrix 値を取得します |
| GetMatrixArray | Get a named matrix array. |
| GetPassName | Returns the name of the shader pass at index pass. |
| GetShaderPassEnabled | Checks whether a given Shader pass is enabled on this Material. |
| GetTag | マテリアルのシェーダーのタグ名を取得します |
| GetTexture | 設定された名前からテクスチャを取得します |
| GetTextureOffset | テクスチャのプロパティー名から画像のオフセットを取得します |
| GetTextureScale | テクスチャのプロパティー名から画像の大きさを取得します |
| GetVector | プロパティー名から Vector4 型の値を取得します |
| GetVectorArray | Get a named vector array. |
| HasProperty | シェーダーのプロパティーに特定のプロパティー名が設定されているか確認します |
| IsKeywordEnabled | マテリアル上でシェーダーキーワードが有効になっているかどうか |
| Lerp | 2 つのマテリアルを時間をかけて変更させます |
| SetBuffer | Sets a named ComputeBuffer value. |
| SetColor | Sets a named color value. |
| SetColorArray | Sets a color array property. |
| SetFloat | Sets a named float value. |
| SetFloatArray | Sets a float array property. |
| SetInt | Sets a named integer value. |
| SetMatrix | Sets a named matrix for the shader. |
| SetMatrixArray | Sets a matrix array property. |
| SetOverrideTag | マテリアルの Tag/Value を上書きに設定します |
| SetPass | レンダリングのための特定のパスを有効にします |
| SetShaderPassEnabled | Enables or disables a Shader pass on a per-Material level. |
| SetTexture | Sets a named texture. |
| SetTextureOffset | テクスチャのオフセットを設定します |
| SetTextureScale | テクスチャのスケールを設定します |
| SetVector | Sets a named vector value. |
| SetVectorArray | Sets a vector array property. |
| GetInstanceID | オブジェクトのインスタンス ID を返します |
| ToString | ゲームオブジェクトの名前を返します |
| Destroy | ゲームオブジェクトやコンポーネント、アセットを削除します |
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
| DontDestroyOnLoad | 新しいシーンを読み込んでもオブジェクトが自動で破壊されないように設定します |
| FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
| FindObjectsOfType | タイプから見つけたすべてのアクティブのオブジェクト配列を返します |
| Instantiate | original のオブジェクトをクローンします |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |