Agrarsense
PlatformUtilities.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Kismet/BlueprintFunctionLibrary.h"
10
11#include "PlatformUtilities.generated.h"
12
17UCLASS()
18class AGRARSENSE_API UPlatformUtilities : public UBlueprintFunctionLibrary
19{
20 GENERATED_BODY()
21
22public:
23
28 UFUNCTION(BlueprintPure, Category = "Platform Utilities")
29 static bool PlayingInEditor();
30
35 UFUNCTION(BlueprintPure, Category = "Platform Utilities")
36 static bool IsPlatformLinux();
37
42 UFUNCTION(BlueprintPure, Category = "Platform Utilities")
43 static bool IsPlatformWindows();
44
49 UFUNCTION(BlueprintPure, Category = "Platform Utilities")
50 static bool IsShippingBuild();
51
56 UFUNCTION(BlueprintCallable, Category = "Platform Utilities")
57 static void CopyTextToClipboard(FString TextToCopy);
58};