Version: 2021.3
public uint keywordCount ;

描述

The number of local shader keywords in this local keyword space. (Read Only)

This property enables you to query the number of local shader keywords in this LocalKeywordSpace without any allocations.

See Also: Shader variants and keywords, LocalKeyword, GlobalKeyword, ComputeShader.keywordSpace, Shader.keywordSpace.