#include "Kismet/GameplayStatics.h"
#include "GameFramework/PlayerController.h"
#include "Blueprint/UserWidget.h"
|
template<class WidgetT > |
UE_NODISCARD WidgetT * | CreateFromSoftWidget (const UObject *WorldContextObject, TSoftClassPtr< WidgetT > SoftClass) |
|
static int64 | GenerateRandomInt64 (const int64 &A, const int64 &B) |
|
◆ CreateFromSoftWidget()
template<class WidgetT >
UE_NODISCARD WidgetT * CreateFromSoftWidget |
( |
const UObject * | WorldContextObject, |
|
|
TSoftClassPtr< WidgetT > | SoftClass ) |
◆ GenerateRandomInt64()
static int64 GenerateRandomInt64 |
( |
const int64 & | A, |
|
|
const int64 & | B ) |
|
static |
As of 5.2, int64 FMath::RandRange is bugged because it internally calls RandHelper64 which works based on int32. So this is a modified version of RandRange and RandHelper64.