private static HasOptimizedShaderAndNameContains ( |
||
shader | ||
name | string | |
Результат | bool |
public static bool IsTreeBarkShader(Shader shader) { return(TreeEditorHelper.HasOptimizedShaderAndNameContains(shader, "bark")); }
public static bool IsTreeLeafShader(Shader shader) { return(TreeEditorHelper.HasOptimizedShaderAndNameContains(shader, "leaves")); }