Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to define keywords enum with neither option?

Discussion in 'Shader Graph' started by tomekkie2, Jun 22, 2022.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    972
    How to define the shader graph keywords enum equivalent to this?

    #pragma multi_compile _ _ONE _TWO
    This creates three variants: a variant with _ONE defined, a variant with _TWO defined, and a variant with neither keyword.