GetPlatformName - Debug
Jump to navigation
Jump to search
Member of: Debug Script
Obtains the game's platform name.
Syntax[edit | edit source]
string Function GetPlatformName() native global
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The game's platform name:
- "Win32" (Skyrim / Skyrim Legendary Edition (PC))
- "Win64" (Skyrim Special Edition (PC))
- "XB1" (Xbox One)
- "Orbis" (PlayStation 4)
- "NintendoX" (Nintendo Switch)
Examples[edit | edit source]
; Print out the current platform name to the log
Debug.Trace("You are running on the " + Debug.GetPlatformName() + " platform")