文档

Unity Engine

Unity Engine

isDynamic

Specifies whether this local shader keyword is used for dynamic branching (Read Only).
阅读时间1 分钟最后更新于 1 个月前

Definition

public bool isDynamic { get; }

Remarks

You can use keywords to control runtime branches in shaders. To do this, declare the keywords using either the
#pragma dynamic_branch
or
#pragma dynamic_branch_local
directive.