您的位置:首页 > 其它

(文档)Shader.Find (在编译时,只包含那些使用中的shader或位置在"Resources"文件夹中shader)

2015-02-12 00:11 323 查看

Shader.Find 查找

static function Find (name : string) : Shader

Description描述

Finds a shader with the given name.

查找名为name的着色器。

Shader.Find can be used to switch to another shader without having to keep a reference to the shader. name is the name you can see in the shader popup of any material. Common names are: "Diffuse", "Bumped Diffuse", "VertexLit", "Transparent/Diffuse" etc.

Shader.Find能够用来切换到另一个着色器,而不必保持一个到该着色的引用。name是你可以在任意材质的shader弹出窗口看到。通常的名称是:"Diffuse", "Bumped Diffuse", "VertexLit", "Transparent/Diffuse"等等。

When building a player, a shader will only be included if it is assigned to a material that is used in any scene or if the shader is placed in a "Resources" folder.

在编译时,只包含那些使用中的shader或位置在"Resources"文件夹中shader。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐