文档

Unity Engine

Unity Engine

keywordCount

The number of local shader keywords in this local keyword space. (Read Only)
阅读时间1 分钟最后更新于 1 个月前

Definition

public uint keywordCount { get; }

Remarks

This property enables you to query the number of local shader keywords in this
LocalKeywordSpace
without any allocations.
Additional Resources: Shader variants and keywords, LocalKeyword, GlobalKeyword, ComputeShader.keywordSpace, Shader.keywordSpace.