Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Question How is the Global Keyword Limit reached ?

Discussion in 'Shaders' started by Ekincan, Apr 23, 2021.

  1. Ekincan

    Ekincan

    Joined:
    Sep 8, 2015
    Posts:
    57
    I have run out of local keywords and pushed some over to the global side.

    Here is the line:
    upload_2021-4-23_19-49-2.png

    My question is:
    If I use the same exact keywords in other shaders do they also count towards the global keyword limit ?
    Like if two different shaders contain the same global keywords (same keyword name) would those keywords be counted twice ?
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,850
    Just once.
     
  3. Ekincan

    Ekincan

    Joined:
    Sep 8, 2015
    Posts:
    57
    Nice.