中文
Appearance
Material.EnableKeyword(value)
Material
启用此材质的本地着色器关键字。
该方法可以在运行时启用特定的关键字,从而在 Shader 中开启对应的功能。
string
void
let material = Resources.Load<Material>(Material, "materialId"); material.EnableKeyword("keyword");