Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.
class in UnityEngine
/
Hereda de:Object
Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.
CerrarPor alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.
CerrarShader scripts used for all rendering.
Most of the advanced rendering is controlled via Material class. Shader class is mostly
used just to check whether a shader can run on the user's hardware (isSupported property), setting up
global shader properties and keywords, and finding shaders by name (Find method).
See Also: Material class, Materials, ShaderLab documentation.
globalMaximumLOD | Shader LOD level for all shaders. |
isSupported | Can this shader run on the end-users graphics card? (Read Only) |
maximumLOD | Shader LOD level for this shader. |
renderQueue | Render queue of this shader. (Read Only) |
DisableKeyword | Unset a global shader keyword. |
EnableKeyword | Set a global shader keyword. |
Find | Finds a shader with the given name. |
IsKeywordEnabled | Is global shader keyword enabled? |
PropertyToID | Gets unique identifier for a shader property name. |
SetGlobalBuffer | Sets a global compute buffer property for all shaders. |
SetGlobalColor | Sets a global color property for all shaders. |
SetGlobalFloat | Sets a global float property for all shaders. |
SetGlobalInt | Sets a global int property for all shaders. |
SetGlobalMatrix | Sets a global matrix property for all shaders. |
SetGlobalTexture | Sets a global texture property for all shaders. |
SetGlobalVector | Sets a global vector property for all shaders. |
WarmupAllShaders | Fully load all shaders to prevent future performance hiccups. |
hideFlags | Should the object be hidden, saved with the scene or modifiable by the user? |
name | El nombre del objeto. |
GetInstanceID | Returns the instance id of the object. |
ToString | Devuelve el nombre del objeto. |
Destroy | Elimina un gameobject, componente o asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Makes the object target not be destroyed automatically when loading a new scene. |
FindObjectOfType | Devuelve el primer objeto activo cargado de tipo type. |
FindObjectsOfType | Devuelve una lista de todos los objetos activos cargados de tipo type. |
Instantiate | Devuelve el nombre del objeto. |
bool | ¿Existe el objeto? |
operator != | Compares if two objects refer to a different object. |
operator == | Compares two object references to see if they refer to the same object. |