文档

Unity Engine


User Manual

Script Reference

Unity Engine


isValid

Specifies whether this local shader keyword is valid (Read Only).
阅读时间1 分钟最后更新于 24 天前

Definition

public bool isValid { get; }

Remarks

A local shader keyword is invalid if:
If you use an invalid local shader keyword as an argument for Material.EnableKeyword, Material.DisableKeyword, ComputeShader.EnableKeyword, or ComputeShader.DisableKeyword, it has no effect. If you use an invalid local shader keyword as an argument for Material.IsKeywordEnabled or ComputeShader.IsKeywordEnabled, these functions return
false
.