Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime platform enum is outdated #72

Open
digitalpbk opened this issue Apr 6, 2018 · 0 comments
Open

Runtime platform enum is outdated #72

digitalpbk opened this issue Apr 6, 2018 · 0 comments

Comments

@digitalpbk
Copy link

digitalpbk commented Apr 6, 2018

I am using Unity version 2017.3.1f1

The following enums work correctly

class RuntimePlatform(IntEnum):
	StandaloneOSXUniversal = 2
	StandaloneOSXIntel = 4
	StandaloneWindows = 5
	WebPlayer = 6
	WebPlayerStreamed = 7
	iOS = 9
	PS3 = 10
	XBOX360 = 11
	Android = 13
	StandaloneLinux = 17
	StandaloneWindows64 = 19
	WebGL = 20
	WSAPlayer = 21
	StandaloneLinux64 = 24
	StandaloneLinuxUniversal = 25
	WP8Player = 26
	StandaloneOSXIntel64 = 27
	BlackBerry = 28
	Tizen = 29
	PSP2 = 30
	PS4 = 31
	PSM = 32
	XboxOne = 33
	SamsungTV = 34
	N3DS = 35
	WiiU = 36
	tvOS = 37
	Switch = 38

I am not sure as of which Unity version the enum changed, does someone know how to switch the enum based on the generator_version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant