Call PlayerSettings.SetScriptingDefineSymbolsForGroup to re-enable server/admin APIs & exit program.Call BuildPipeline.BuildPlayer with your settings & exit program.Call PlayerSettings.SetScriptingDefineSymbolsForGroup to disable server/admin APIs & exit program.If you're building from the command line, you have to do three separate executions of unity-command line: There's a race condition in Unity, and the build won't be built with the updated defines. IMPORTANT NOTE: You can't call SetScriptingDefineSymbolsForGroup and then immediately build. PlayerSettings.SetScriptingDefineSymbolsForGroup(lectedBuildTargetGroup, curDefines) string curDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(lectedBuildTargetGroup) You can make it part of your build process to enable and disable the server/admin APIs, and with the compile flags, your editor scripts won't cause errors when the APIs are disabled. Your editor file that uses admin and server APIs Wrap your editor scripts with the following code: #if ENABLE_PLAYFABADMIN_API & ENABLE_PLAYFABSERVER_API I don't think there's any way that the Editor Extensions can do this for you, but I think you could do it yourself with a few steps: ![]() ![]() This thread has recently been brought back into my attention.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |