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