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

Unity Cloud Build Getting Injected Custom Define Symbols

Discussion in 'Unity Build Automation' started by mleesago, Nov 29, 2017.

  1. mleesago

    mleesago

    Joined:
    Jan 18, 2017
    Posts:
    10
    I was using PlayerSettings.GetScriptingDefineSymbolsForGroup on the pre-build process and noticed that it is not returning any of the custom define symbols that have been added using target config.

    Is there a way to get injected define symbols by UCB?

    I was thinking of looking for .rps files if this is the way that UCB injects define symbols.

    What would be the best way to achieve this?
     
  2. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Ya you would have to inspect the contents of the .rsp files (Assets/mcs.rsp would probably be a good choice).
     
  3. mleesago

    mleesago

    Joined:
    Jan 18, 2017
    Posts:
    10
    Awesome, that worked!

    Thank you so much for the reply.