isValid
Specifies whether this local shader keyword is valid (Read Only).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public bool isValid { get; }
Remarks
A local shader keyword is invalid if:
- It doesn't exist in the local keyword space of the shader or compute shader you pass into the constructor.
- If Unity can't find it when you call LocalKeywordSpace.FindKeyword.
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 .
falseAdditional Resources: LocalKeywordSpace, Material.EnableKeyword, Material.DisableKeyword, ComputeShader.EnableKeyword, ComputeShader.DisableKeyword, [Material.IsKeywordEnabled]], ComputeShader.IsKeywordEnabled.