Shader 着色器
Inherits from Object
Shader 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) and to find shaders by name (Find method).
大多数高级的渲染都是通过Material类控制的。Shader类最常用于检查一个着色器时否能够运行在用户的硬件上(isSupported属性)并根据名称查找着色器(Find方法)。
参见: Material 类
Variables变量
-
Can this shader run on the end-users graphics card? (Read Only)
可以在终端用户的图形卡上运行这个着色器么?(只读)
-
Shader LOD level for this shader.
用于这个着色器的Shader LOD level(细节级别)。
-
Render queue of this shader (Read Only)
该着色器的渲染队列。(只读)
Class Variables类变量
Class Functions类函数
-
Finds a shader with the given name.
查找名为name的着色器。
-
Sets a global color property for all shaders.
为所有着色器设置一个全局颜色属性。
-
Sets a global vector property for all shaders.
为所有着色器设置一个全局向量。
-
Sets a global float property for all shaders.
为所有着色器设置一个全局浮点数。
-
Sets a global texture property for all shaders.
为所有着色器设置一个全局纹理。
-
Sets a global matrix property for all shaders.
为所有着色器设置一个全局矩阵。
-
Gets unique identifier for a shader property name.
为一个着色器属性名获取唯一标识。
-
Fully load all shaders to prevent future performance hiccups.
完全加载所有着色器,以防止将来性能打嗝。
Inherited members继承成员
Inherited Variables继承变量
-
The name of the object. //物体的名字
-
Should the object be hidden, saved with the scene or modifiable by the user?
物体是否被隐藏、保存在场景中或被用户修改?
Inherited Functions继承函数
Inherited Class Functions继承类函数
-
Removes a gameobject, component or asset.
删除一个游戏物体、组件或资源
-
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
立即销毁物体obj,强烈建议使用Destroy代替。
-
Makes the object target not be destroyed automatically when loading a new scene.
加载新场景的时候使目标物体不被自动销毁。
-
Returns the first active loaded object of Type type.
返回Type类型第一个激活的加载的物体。
-
Returns a list of all active loaded objects of Type type.
返回Type类型的所有激活的加载的物体列表
-
Clones the object original and returns the clone.
克隆原始物体,并返回克隆的物体
Page last updated: 2011-9-18