文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetGlobalKeywordName(ShaderKeyword)

Gets the string name of the global keyword.
阅读时间1 分钟最后更新于 25 天前

Definition

警告
Removed. GetGlobalKeywordName is deprecated. Use the ShaderKeyword.name property instead.
public static string GetGlobalKeywordName(ShaderKeyword index)

Parameters

Returns

Type

Description

string

Remarks

Unity now provides the ShaderKeyword.name API which works with all shader keyword types. It is best practice to use this API instead.