Navigation
API > API/Plugins > API/Plugins/StateTreeModule
Time duration with random variance. Stored compactly as two uint16s, which gives time range of about 650 seconds. The variance is symmetric (+-) around the specified duration.
| Name | FStateTreeRandomTimeDuration |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTypes.h |
| Include Path | #include "StateTreeTypes.h" |
Syntax
USTRUCT ()
struct FStateTreeRandomTimeDuration
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Scale | float | StateTreeTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetDuration() |
StateTreeTypes.h | ||
float GetRandomDuration
(
const FRandomStream& RandomStream |
StateTreeTypes.h | ||
float GetRandomVariance() |
StateTreeTypes.h | ||
bool IsEmpty() |
StateTreeTypes.h | ||
void Reset() |
Reset duration to empty. | StateTreeTypes.h | |
void Set
(
const float InDuration, |
Sets the time duration with random variance. | StateTreeTypes.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint16 Quantize
(
const float Value |
StateTreeTypes.h |