ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


GetKeywordName

Gets the string name of the keyword.
読み終わるまでの所要時間 1 分最終更新 24日前

Definition

GetKeywordName(Shader, ShaderKeyword)

Gets the string name of the keyword.
注意
Removed. GetKeywordName is deprecated. Use the ShaderKeyword.name property instead.
public static string GetKeywordName(Shader shader, 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.

GetKeywordName(ComputeShader, ShaderKeyword)

Gets the string name of the keyword.
注意
Removed. GetKeywordName is deprecated. Use the ShaderKeyword.name property instead.
public static string GetKeywordName(ComputeShader shader, 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.

GetKeywordName()

Gets the string name of the keyword.
注意
Removed. GetKeywordName is deprecated. Use ShaderKeyword.name instead.
public string GetKeywordName()

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.