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. Dismiss Notice

Question Scripting Define keeps being added

Discussion in 'Editor & General Support' started by CoolJosh3k, Apr 14, 2023.

  1. CoolJosh3k

    CoolJosh3k

    Joined:
    Dec 3, 2016
    Posts:
    145
    I notice that a certain scripting define keeps being readded under script compilation settings for Android.

    How can I track down what is actually forcing this to happen? Or is this some bug?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,710
    First thing would be to search your project for the identifier in question.
     
  3. CoolJosh3k

    CoolJosh3k

    Joined:
    Dec 3, 2016
    Posts:
    145
    I did a search through all scripts and text files using Notepad++. Nothing was found.

    I figure it might be something more complicated, where I can't just find it as part of code.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,393
    It also helps is you tell which define it is
     
  5. CoolJosh3k

    CoolJosh3k

    Joined:
    Dec 3, 2016
    Posts:
    145
    I know the exact define. That is how I was able to search all files with Notepad++.

    I figure perhaps the whole thing is more complicated, such as compliled code so that I can't really know what keeps adding the define.

    Could it be this is actually a unity bug where the define is removed in the UI, but not from the settings. Thus is just reloads those actually unchanged settings and it reapears in the UI since it was never actually removed?

    What ways coud a define be added to the settings, other than a user doing so from the UI or a script?
     
  6. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,842
    I think they were asking you to tell us what the define is.
     
    DevDunk likes this.