マテリアルクラス
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 | The main color of the Material. |
doubleSidedGI | Gets and sets whether the Double Sided Global Illumination setting is enabled for this material. |
enabledKeywords | An array containing the local shader keywords that are currently enabled for this material. |
enableInstancing | Gets and sets whether GPU instancing is enabled for this material. |
globalIlluminationFlags | マテリアルがライトマップとライトプローブをどのように操作するかを定義します |
mainTexture | The main texture. |
mainTextureOffset | The offset of the main texture. |
mainTextureScale | The scale of the main texture. |
passCount | マテリアルのパスの数(読み取り専用) |
renderQueue | マテリアルのレンダーキュー |
shader | マテリアルで使用するシェーダー |
shaderKeywords | An array containing names of the local shader keywords that are currently enabled for this material. |
Material |
ComputeCRC | Computes a CRC hash value from the content of the material. |
CopyPropertiesFromMaterial | マテリアルのプロパティーを他のマテリアルにコピーします |
DisableKeyword | Disables a local shader keyword for this material. |
EnableKeyword | Enables a local shader keyword for 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 | This method is deprecated. Use GetFloat or GetInteger instead. |
GetInteger | 設定された名前から 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 | テクスチャのプロパティー名から画像のオフセットを取得します |
GetTexturePropertyNameIDs | Return the name IDs of all texture properties exposed on this material. |
GetTexturePropertyNames | Returns the names of all texture properties exposed on this material. |
GetTextureScale | テクスチャのプロパティー名から画像の大きさを取得します |
GetVector | プロパティー名から Vector4 型の値を取得します |
GetVectorArray | Get a named vector array. |
HasBuffer | Checks if the ShaderLab file assigned to the Material has a ComputeBuffer property with the given name. |
HasColor | Checks if the ShaderLab file assigned to the Material has a Color property with the given name. |
HasConstantBuffer | Checks if the ShaderLab file assigned to the Material has a ConstantBuffer property with the given name. |
HasFloat | Checks if the ShaderLab file assigned to the Material has a Float property with the given name. This also works with the Float Array property. |
HasInt | This method is deprecated. Use HasFloat or HasInteger instead. |
HasInteger | Checks if the ShaderLab file assigned to the Material has an Integer property with the given name. |
HasMatrix | Checks if the ShaderLab file assigned to the Material has a Matrix property with the given name. This also works with the Matrix Array property. |
HasProperty | Checks if the ShaderLab file assigned to the Material has a property with the given name. |
HasTexture | Checks if the ShaderLab file assigned to the Material has a Texture property with the given name. |
HasVector | Checks if the ShaderLab file assigned to the Material has a Vector property with the given name. This also works with the Vector Array property. |
IsKeywordEnabled | Checks whether a local shader keyword is enabled for this material. |
Lerp | 2 つのマテリアルを時間をかけて変更させます |
SetBuffer | Sets a named buffer value. |
SetColor | Sets a named color value. |
SetColorArray | Sets a color array property. |
SetConstantBuffer | Sets a ComputeBuffer or GraphicsBuffer as a named constant buffer for the material. |
SetFloat | Sets a named float value. |
SetFloatArray | Sets a float array property. |
SetInt | This method is deprecated. Use SetFloat or SetInteger instead. |
SetInteger | Sets a named integer value. |
SetKeyword | Sets the state of a local shader keyword for this material. |
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. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
GetInstanceID | Gets the instance ID of the object. |
ToString | Returns the name of the object. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |