Hi guys,
The title says it all, I am trying to find a way to get the current platform Unity is targeted on. Everything must be checked while in-editor.
Thanks! ![]()
Hi guys,
The title says it all, I am trying to find a way to get the current platform Unity is targeted on. Everything must be checked while in-editor.
Thanks! ![]()
Use Preprocessor Directives to run sections of your code on specific platforms and tag the top of the script with [ExecuteInEditMode] to run in editor.
You mean this Unity - Scripting API: EditorUserBuildSettings.activeBuildTarget ?
Thanks! EditorUserBuildSettings.activeBuildTarget works flawlessly! ![]()
Worked for me as well! Many thanks for โdirectionโ ![]()
This will only work in Editor, not in build games.
Hi, I found this: Unity - Scripting API: Application.platform (unity3d.com).
Hope it can help you out ![]()