(文檔)Shader.Find (在編譯時,只包含那些使用中的shader或位置在"Resources"文件夾中shader)


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。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM