Documentation

Unity Engine

Unity Engine

isDynamic

Specifies whether this local shader keyword is used for dynamic branching (Read Only).
Read time 1 minuteLast updated 2 months ago

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.