I’m having a hard time finding the list of possible parameters available in Unity2017’s SetPlatformSettings. Tracing this function back in the open-source repo shows an extern call - What/Where is the current list of parameters and possible values?
Great question, I’d like to know the answer too. I do know of one valid and working entry:
EditorUserBuildSettings.SetPlatformSettings("Standalone", "CopyPDBFiles", "false");
I found that when its on “Standalone” you can basically add any setting you want
Debug.Log(EditorUserBuildSettings.GetPlatformSettings("Standalone", "madeUpSetting1234"));
EditorUserBuildSettings.SetPlatformSettings("Standalone", "madeUpSetting1234", "new value for this setting");
Debug.Log(EditorUserBuildSettings.GetPlatformSettings("Standalone", "madeUpSetting1234"));
Ive seen this pop up on a few places but its been ignored so far… hopefully an unity official can jump in this forum and help us out
You can kind of reverse-engineer some of the hidden properties by opening the Library/EditorUserBuildSettings (Unity 2019.2) in a text editor. It’s cryptic but property names are human readable. All properties that go through SetPlatformSettings are string based. Sometimes (like with Visual Studio version) neither the property name nor the value are shown in the Build UI as is, and are heavily renamed etc. Some others are as-is. Here is one unobvious example:
EditorUserBuildSettings.SetPlatformSettings("Standalone", "m_ArchitectureFlags", "x86"); // Architecture = x86
The whole hierarchy and naming conventions of build settings is a food fight performance. Especially the part about some of the settings being under /ProjectSettings and some other being under the unreliable /Library folder in the EditorUserBuildSettings. I think this is legacy of Unity project being thought of as one game manually built for different platforms which is not how many projects are. Later versions of Unity are better about this, like moving those “user” build settings into ProjectSettings, providing more explicit and strongly types properties, etc.
Go figure…
Does anyone know the plarformName value for “UWP” ?
I’ve tried “Universal Windows Platform”, “Windows”, "UWP and none of them worked.
I am trying to modify CopyPDBFiles there.
Ok, I know this hasn’t received any activity in a while, but THANK YOU for pointing me in the right direction to solve a problem I have been banging my head against for the last week!