Please excuse my super newb-ness when it comes to this stuff but I tried finding tutorials or whatever to implement this but of course there’s nothing I can find quite what’s needed. All tutorials show the same simple thing and nothing that helps me get this working. Of course I know absolutely nothing about C++ so this is quite beyond me.
So this currently what I’ve got in the generated .h file when I add a new BlueprintFunctionLibrary. I basically took the code given to me and pasted it in that generated .h file. I don’t know how to adapt it, I mean, like I said I know absolutely nothing about C++ and this doesn’t compile. If anyone knows how to adapt the code to actually work?.. that would be awesome and I would maybe learn a little something… maybe…
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "MyBPFunctionLibrary.generated.h"
/**
*
*/
UCLASS()
class URALLYTEST1_API UMyBPFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
auto DeviceForm = FString(Windows::System::Profile::AnalyticsInfo::DeviceForm->Data()).ToLower();
if (DeviceForm.Contains("xbox one x"))
//Device Is XBox One X
else if (DeviceForm.Contains("xbox"))
//Device Is XBox One
else
//Device Is Other Non-XBox Device
};