Navigation
API > API/Plugins > API/Plugins/StateTreeModule
References
| Module | StateTreeModule |
| Header | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTypes.h |
| Include | #include "StateTreeTypes.h" |
Syntax
USTRUCT ()
struct FStateTreeRandomTimeDuration
Remarks
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.
Variables
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetDuration () |
||
| float | |||
| float | GetRandomDuration
(
const FRandomStream& RandomStream |
||
| float | |||
| bool | IsEmpty () |
||
| uint16 | Quantize
(
const float Value |
||
| void | Reset () |
Reset duration to empty. | |
| void | Set
(
const float InDuration, |
Sets the time duration with random variance. |
Constants
| Name | Description |
|---|---|
| Scale |