Skip to content
Snippets Groups Projects
Select Git revision
  • d81474c5a7a0453465af2d8f140567feb2c80658
  • 5.4 default protected
  • 5.5
  • dev/5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
20 results

RWTHVRUtilities.h

Blame
  • 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);
    };