A Demo Project for the UnrealEngineSDK
|
A library of custom functions related to PixoVR. More...
#include <PixoVRFunctionLibrary.h>
Static Public Member Functions | |
static USceneComponent * | AddSceneComponentByClass (UObject *Outer, TSubclassOf< USceneComponent > Class, const FTransform &ComponentRelativeTransform) |
Adds a scene component based on the specified class to the given outer object. | |
static bool | CheckAuthJSON () |
Checks if the authentication cache file exists. | |
static bool | CompareAuthJSON (const FPixoLoginInfo &LoginInfo) |
Compares the credentials of the authentication. | |
static bool | DeleteAuthJSON () |
Deletes the authentication cache file from the disk. | |
static FPixoLoginInfo | EncryptLoginInfo (const FPixoLoginInfo &LoginInfo, const FString &Password) |
Encrypts the login information using the specified password. | |
static bool | ExportToCSVToProjectRootDirectory (FString Textbody, FString FileName, FString OptionalFolderName, bool OverwriteFile) |
Exports the specified text as a CSV file to the project root directory. | |
static bool | ExportToCSVToSpecifiedPath (FString FilePath, FString Textbody, FString FileName, FString OptionalFolderName, bool OverwriteFile) |
Exports the specified text as a CSV file to the specified file path. | |
static FName | GetFullCultureName (FString Culture) |
Retrieves the full culture name based on the specified culture. | |
static FString | GetHMDFullDeviceName () |
Retrieves the full device name of the HMD (Head-Mounted Display). | |
static bool | GetIsOfflineModeEnabled () |
Retrieves the flag indicating whether offline mode is enabled. | |
static bool | GetKillSwitchValues (FString &MonthDayYear) |
Retrieves the kill switch values from the configuration file. | |
static FName | GetMapAfterIntro () |
Retrieves the map name to load after the introduction. | |
static FName | GetMapAfterLogin () |
Retrieves the map name to load after login. | |
static FString | GetMasterServiceIP () |
Retrieves the IP address of the master service. Probably not used. | |
static float | GetOfflineTime () |
Retrieves the time in seconds for offline mode. | |
static FString | GetTestServerIP () |
Retrieves the IP address of the test server. | |
static void | GetVersionName (FString &Version) |
Retrieves the version name. | |
static bool | LoadAuthFromJSON (FPixoLoginInfo &LoginInfo) |
Loads the cached authentication from a JSON file and fills the necessary UMG fields. | |
static FString | NewLineCharacter () |
Retrieves the newline character used in the current platform. | |
static bool | SaveAuthToJSON (const FPixoLoginInfo &LoginInfo) |
Caches the authentication fields from the UMG widget to a JSON file. | |
static void | SetLocalizationCulture (FString Culture) |
Sets the localization culture. | |
Private Member Functions | |
GENERATED_BODY () | |
A library of custom functions related to PixoVR.
UCLASS()
Definition at line 18 of file PixoVRFunctionLibrary.h.
|
staticBlueprintCallable |
Adds a scene component based on the specified class to the given outer object.
Outer | The outer object to which the scene component will be added. |
Class | The class of the scene component to add. |
ComponentRelativeTransform | The relative transform of the scene component. |
UFUNCTION(BlueprintCallable, meta = (DisplayName = "Add Scene Component By Class"), Category = "Pixo Custom Functions")
Definition at line 30 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Checks if the authentication cache file exists.
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | Auth")
Definition at line 177 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Compares the credentials of the authentication.
LoginInfo | The login information to compare with. |
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | Auth")
Definition at line 159 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Deletes the authentication cache file from the disk.
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | Auth")
Definition at line 170 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Encrypts the login information using the specified password.
LoginInfo | The login information to encrypt. |
Password | The password used for encryption. |
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | Auth")
Definition at line 114 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Exports the specified text as a CSV file to the project root directory.
Textbody | The text content to export. |
FileName | The name of the CSV file. |
OptionalFolderName | The name of the optional folder to store the CSV file. |
OverwriteFile | Indicates whether to overwrite an existing file with the same name. |
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | File IO")
Definition at line 182 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Exports the specified text as a CSV file to the specified file path.
FilePath | The path where the CSV file will be exported. |
Textbody | The text content to export. |
FileName | The name of the CSV file. |
OptionalFolderName | The name of the optional folder to store the CSV file. |
OverwriteFile | Indicates whether to overwrite an existing file with the same name. |
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | File IO")
Definition at line 59 of file PixoVRFunctionLibrary.cpp.
|
private |
|
staticBlueprintCallable |
Retrieves the full culture name based on the specified culture.
Culture | The culture to get the full name for. |
UFUNCTION(BlueprintCallable, Category = "Localization")
Definition at line 244 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the full device name of the HMD (Head-Mounted Display).
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions")
Definition at line 66 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the flag indicating whether offline mode is enabled.
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions | Login")
Definition at line 214 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the kill switch values from the configuration file.
MonthDayYear | The output string to store the MonthDayYear value. |
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions | Kill Switch")
Definition at line 92 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the map name to load after the introduction.
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions | Login")
Definition at line 229 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the map name to load after login.
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions | Login")
Definition at line 224 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the IP address of the master service. Probably not used.
UFUNCTION(BlueprintPure, Category="Pixo|OnlineSubsystem")
Definition at line 254 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the time in seconds for offline mode.
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions | Login")
Definition at line 219 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the IP address of the test server.
UFUNCTION(BlueprintPure, Category="FallPrevention")
Definition at line 234 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the version name.
Version | The output version name. |
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions")
Definition at line 79 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Loads the cached authentication from a JSON file and fills the necessary UMG fields.
LoginInfo | The output structure to store the loaded login information. |
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | Auth")
Definition at line 138 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintPure |
Retrieves the newline character used in the current platform.
UFUNCTION(BlueprintPure, Category = "Pixo Custom Functions")
Definition at line 54 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Caches the authentication fields from the UMG widget to a JSON file.
LoginInfo | The login information to cache. |
UFUNCTION(BlueprintCallable, Category = "Pixo Custom Functions | Auth")
Definition at line 150 of file PixoVRFunctionLibrary.cpp.
|
staticBlueprintCallable |
Sets the localization culture.
Culture | The culture to set. |
UFUNCTION(BlueprintCallable, Category = "Localization")
Definition at line 239 of file PixoVRFunctionLibrary.cpp.