Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Scriptable Define Symbols get deleted [Case 1418831]

Discussion in '2022.1 Beta' started by crafTDev, Apr 8, 2022.

  1. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Hello,

    As the title says, I have been having this issue for a long time now; can’t use Scriptable Define Symbols cause no matter what, they get deleted when you add any after recompile. Has this been reported?

    Thanks,
    crafTDev
     
  2. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    CASE 1418887

    I have several scriptable define symbols that I enter manually depending on what I want to compile.
    In 2022.1, whatever I enter, gets rolled back to how it was before. I get a message saying "reloading script assemblies" or something in that line, which I guess means it's doing a recompile. And then, the define symbols roll back to whatever it was.

    It seems to get whatever it's setup on the "standalone" build settings. Whatever you change on ios or android for instance, will get the same settings than Standalone.

    using 2022.1b15 in windows.

    I even tried removing them and restart the editor. And they get back!

    So I had to go into the projectssettings.asset file and change the text manually. But only the one in standalone are taken into account.

    Reported as CASE 1418887
     
    Last edited: Apr 10, 2022
  3. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
    Hello,

    Case # is 1418831

    Thanks,
    crafTDev
     
    Last edited by a moderator: Apr 20, 2022
    LeonhardP likes this.
  4. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,820
  5. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    811
    100% confirmed. I can't even change it by script. It always reverts to what it was before and there is nothing you can do. This happens with iOS.

    @LeonhardP Is there any news on this? I am stuck in debug mode right now since I cannot change the define symbol through the API or code.
     
  6. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    It's a mess. In the editor it seems to work only with the defines setup on "standalone", ignoring whatever you have for ios or android. But if you compile, it gets whatever you have on ios or android. But you won't be able to see it or edit it. I have to manually edit the project platform settings with wordpad and load the editor for it to work. It also provokes all kind of issues internally. The physics seem to be all off vs 2021.2.19. Probably because it is compiling for standalone internally instead of the selected platform.
     
    MousePods likes this.
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi, thanks for the reports. We're looking into them. Was there a version of 2022.1b where this was not an issue for you?
     
  8. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    I believe it happens in all betas. At least all that I recall.
     
    LeonhardP likes this.
  9. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    crafTDev likes this.
  10. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    wow guys, 2022.1.8f and I got this one back again. Seriously? I'm also reading several complains from the previous month.
     
    MousePods likes this.
  11. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    2022.1.9 and still failing! we can't build any project outside of the desktop platform.