La clase material.
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).
Con el fin de que el material sea utilizado por un objeto, utilice la propiedad 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. |
enableInstancing | Gets and sets whether GPU instancing is enabled for this material. |
globalIlluminationFlags | Define cómo el material debería interactuar con los lightmaps y lightprobes. |
mainTexture | The main texture. |
mainTextureOffset | The offset of the main texture. |
mainTextureScale | The scale of the main texture. |
passCount | Cuántos passes hay en este material (Lectura solamente). |
renderQueue | Render queue (cola de renderización) de este material. |
shader | The shader used by the material. |
shaderKeywords | Palabras claves adicionales establecidas pro este material. |
Material |
ComputeCRC | Computes a CRC hash value from the content of the material. |
CopyPropertiesFromMaterial | Copy properties from other material into this material. |
DisableKeyword | Unset a shader keyword. |
EnableKeyword | Sets a shader keyword that is enabled by this material. |
FindPass | Returns the index of the pass passName. |
GetColor | Obtiene un valor de color nombrado. |
GetColorArray | Get a named color array. |
GetFloat | Obtiene un valor float nombrado. |
GetFloatArray | Get a named float array. |
GetInt | Obtiene un valor entero nombrado. |
GetMatrix | Obtiene un valor matriz nombrado del shader. |
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 | Obtiene el valor de la etiqueta shader de un material. |
GetTexture | Obtiene una textura nombrada. |
GetTextureOffset | Obtiene el desplazamiento de ubicación del propertyName de la textura. |
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 | Obtiene la escala de posicionamiento del propertyName de la textura. |
GetVector | Obtiene un valor de vector nombrado. |
GetVectorArray | Get a named vector array. |
HasProperty | Revisa si el shader del material tiene una propiedad de un nombre dado. |
IsKeywordEnabled | Is the shader keyword enabled on this material? |
Lerp | Interpola las propiedades entre dos materiales. |
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 | Sets a named integer value. |
SetMatrix | Sets a named matrix for the shader. |
SetMatrixArray | Sets a matrix array property. |
SetOverrideTag | Establece una tag/valor para anular en el material. |
SetPass | Activate the given pass for rendering. |
SetShaderPassEnabled | Enables or disables a Shader pass on a per-Material level. |
SetTexture | Sets a named texture. |
SetTextureOffset | Establece el desplazamiento de ubicación del propertyName de la textura. |
SetTextureScale | Establece la escala de posicionamiento del propertyName de la textura. |
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 | El nombre del objeto. |
GetInstanceID | Devuelve el id de la instancia del objeto. |
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 | Devuelve el primer objeto activo cargado de tipo type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | Clona el objeto original y devuelve el clon. |
bool | ¿Existe el objeto? |
operator != | Compare si dos objetos se refieren a un objeto diferente. |
operator == | Compara dos referencias de objeto para ver si se refieren al mismo objeto. |