Search Unity

Preprocessing directives missing 2021.3.4f1 + VS2022

Discussion in 'Editor & General Support' started by Klamore74, Jun 29, 2022.

  1. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    103
    Hi,

    I'm using 2021.3.4f1 + VS2022 but preprocessing directives, like UNITY_EDITOR, DEBUG, are missing in VS2022.

    I try to regenerate the cs project without success.

    Any advice? What am I missing?

    Thanks.
     
  2. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    103
    I finally resolved, this flag simulates the player projects so don't include any editor assembly and defines.

    upload_2022-6-29_15-4-57.png