Select Git revision
RWTHVRUtilities.h
RWTHVRUtilities.h 942 B
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "RWTHVRUtilities.generated.h"
/**
* Custom log category for all RWTHVRToolkit related components
*/
DECLARE_LOG_CATEGORY_EXTERN(Toolkit, Log, All);
UCLASS()
class RWTHVRTOOLKIT_API URWTHVRUtilities : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintPure, Category = "RWTHVRToolkit|Platform")
static bool IsDesktopMode();
UFUNCTION(BlueprintPure, Category = "RWTHVRToolkit|Platform")
static bool IsHeadMountedMode();
UFUNCTION(BlueprintPure, Category = "RWTHVRToolkit|Platform")
static bool IsRoomMountedMode();
UFUNCTION(BlueprintPure, Category = "RWTHVRToolkit|Platform")
static bool IsPrimaryNode();
/* Distance in meters */
UFUNCTION(BlueprintPure, Category = "RWTHVRToolkit")
static float GetEyeDistance();
UFUNCTION(BlueprintCallable)
static void ShowEngineError(const FString& Message);
};