13 Super(ObjectInitializer)
15 RandomEngine = CreateDefaultSubobject<URandomEngine>(TEXT(
"RandomEngine"));
20 Super::OnConstruction(Transform);
26void AActorWithRandomEngine::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
28 Super::PostEditChangeProperty(PropertyChangedEvent);
29 if (PropertyChangedEvent.Property) {
int32 Seed
Seed of the pseudo-random engine.
virtual void OnConstruction(const FTransform &Transform) override
AActorWithRandomEngine(const FObjectInitializer &ObjectInitializer)
URandomEngine * RandomEngine
void SetSeed(int32 InSeed)
bool bGenerateRandomSeed
Set a random seed.
void Seed(int32 InSeed)
Seed the random engine.
static int32 GenerateRandomSeed()
Generate a non-deterministic random seed.