Agrarsense
Static Public Member Functions | List of all members
UPlatformUtilities Class Reference

#include <PlatformUtilities.h>

Inheritance diagram for UPlatformUtilities:
Inheritance graph
[legend]
Collaboration diagram for UPlatformUtilities:
Collaboration graph
[legend]

Static Public Member Functions

static bool PlayingInEditor ()
 
static bool IsPlatformLinux ()
 
static bool IsPlatformWindows ()
 
static bool IsShippingBuild ()
 
static void CopyTextToClipboard (FString TextToCopy)
 

Detailed Description

A class for platform related utilities. All functions are BlueprintPure which can be called from anywhere.

Definition at line 18 of file PlatformUtilities.h.

Member Function Documentation

◆ CopyTextToClipboard()

void UPlatformUtilities::CopyTextToClipboard ( FString  TextToCopy)
static

Copies the specified text to the system clipboard.

Parameters
TextToCopy- The text string to copy to the clipboard.

Definition at line 51 of file PlatformUtilities.cpp.

52{
53 FPlatformApplicationMisc::ClipboardCopy(*TextToCopy);
54}

◆ IsPlatformLinux()

bool UPlatformUtilities::IsPlatformLinux ( )
static

Are we currently playing on Linux. BlueprintPure.

Returns
true if playing on Linux. Otherwise false.

Definition at line 24 of file PlatformUtilities.cpp.

25{
26#if PLATFORM_LINUX
27 return true;
28#endif
29
30 return false;
31}

◆ IsPlatformWindows()

bool UPlatformUtilities::IsPlatformWindows ( )
static

Are we currently playing on Windows. BlueprintPure.

Returns
true if playing on Windows. Otherwise false.

Definition at line 33 of file PlatformUtilities.cpp.

34{
35#if PLATFORM_WINDOWS
36 return true;
37#endif
38
39 return false;
40}

◆ IsShippingBuild()

bool UPlatformUtilities::IsShippingBuild ( )
static

Are we currently playing in Shipping build. BlueprintPure.

Returns
true if playing in Shipping build. Otherwise false.

Definition at line 42 of file PlatformUtilities.cpp.

43{
44#if UE_BUILD_SHIPPING
45 return true;
46#endif
47
48 return false;
49}

◆ PlayingInEditor()

bool UPlatformUtilities::PlayingInEditor ( )
static

Are we currently playing in Unreal Editor. BlueprintPure.

Returns
true if playing in Editor. Otherwise false.

Definition at line 15 of file PlatformUtilities.cpp.

16{
17#if WITH_EDITOR
18 return true;
19#endif
20
21 return false;
22}

The documentation for this class was generated from the following files: