GetPlatformName - Debug

From the CreationKit Wiki
Revision as of 18:05, 4 December 2021 by Kernel Panic (talk | contribs) (→‎Return Value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Debug Script

Obtains the game's platform name.

Syntax

string Function GetPlatformName() native global

Parameters

None.

Return Value

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

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

See Also