Deprecated feature, no longer available
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 | マテリアルがライトマップとライトプローブをどのように操作するかを定義します |
isVariant | Returns true if this material is a material variant. |
mainTexture | The main texture. |
mainTextureOffset | The offset of the main texture. |
mainTextureScale | The scale of the main texture. |
parent | Parent of this material. |
passCount | マテリアルのパスの数(読み取り専用) |
renderQueue | マテリアルのレンダーキュー |
shader | マテリアルで使用するシェーダー |
shaderKeywords | An array containing names of the local shader keywords that are currently enabled for this material. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
ApplyPropertyOverride | Applies an override associated with a Material Variant to a target. |
ComputeCRC | Computes a CRC hash value from the content of the material. |
CopyMatchingPropertiesFromMaterial | Copies properties, keyword states and settings from mat to this material, but only if they exist in both materials. |
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. |
GetBuffer | Get a named Graphics Buffer value. |
GetColor | 設定された名前から色を取得します |
GetColorArray | Get a named color array. |
GetConstantBuffer | Get a named Constant Buffer value. |
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. |
GetPropertyNames | Retrieves a list of the named properties in the material that match the input property type. |
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. |
IsChildOf | Returns True if the given material is an ancestor of this Material. |
IsKeywordEnabled | Checks whether a local shader keyword is enabled for this material. |
IsPropertyLocked | Checks whether a property is locked by this material. |
IsPropertyLockedByAncestor | Checks whether a property is locked by any of ancestor of this material. |
IsPropertyOverriden | Checks whether a property is overriden by this material. |
Lerp | 2 つのマテリアルを時間をかけて変更させます |
RevertAllPropertyOverrides | Removes all property overrides on this material. |
RevertPropertyOverride | Removes the override on a property. |
SetBuffer | Sets a named buffer value. |
SetColor | Sets a 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 | レンダリングのための特定のパスを有効にします |
SetPropertyLock | Sets the lock state of a property for this material. |
SetShaderPassEnabled | Enables or disables a Shader pass on a per-Material level. |
SetTexture | Sets a named texture. |
SetTextureOffset | Sets the placement offset of a given texture. The name parameter is defined in the shader. This method creates a new Material instance. |
SetTextureScale | テクスチャのスケールを設定します |
SetVector | Sets a named vector value. |
SetVectorArray | Sets a vector array property. |
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. |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |
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.