GetPlatformName - Debug

Member of: Debug Script

Obtains the game's platform name.

SyntaxEdit

string Function GetPlatformName() native global

ParametersEdit

None.

Return ValueEdit

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)

ExamplesEdit

; Print out the current platform name to the log
Debug.Trace("You are running on the " + Debug.GetPlatformName() + " platform")

See AlsoEdit