I'm trying to make an Editor script that sets the platform specific texture settings. For that I need the strings of the platforms, but I can't find them anywhere.
Here’s some code for the options I know (these are confirmed to work - see details below for “Default” which needs to be handled differently):
private string[] platformOptions = new string[] {
"Default",
"Web",
"Standalone",
"iPhone",
"Android"
#if UNITY_3_5
, "FlashPlayer"
#endif
// Not sure what the precise strings are for these:
// Xbox 360
// PS3
// Wii
};
I’ve also posted a documentation bug (Case 434144 - TextureImporter - Platform strings missing in API). It’s unfortunate they’re not using an Enumeration for this instead of strings.