Raw distribution used to quickly sample distributions at runtime.
更多...
#include <Distributions.h>
被 FRawDistributionFloat , 以及 FRawDistributionVector 继承.
|
|
| FRawDistribution () |
| | Default constructor.
|
| |
| void | GetValue (float Time, float *Value, int32 NumCoords, int32 Extreme, struct FRandomStream *InRandomStream) const |
| | Calcuate the float or vector value at the given time 更多...
|
| |
| bool | Serialize (FArchive &Ar) |
| | Serialization. 更多...
|
| |
Raw distribution used to quickly sample distributions at runtime.
◆ GetValue()
| void FRawDistribution::GetValue |
( |
float |
Time, |
|
|
float * |
Value, |
|
|
int32 |
NumCoords, |
|
|
int32 |
Extreme, |
|
|
struct FRandomStream * |
InRandomStream |
|
) |
| const |
Calcuate the float or vector value at the given time
- 参数
-
| Time | The time to evaluate |
| Value | An array of (1 or 3) FLOATs to receive the values |
| NumCoords | The number of floats in the Value array |
| Extreme | For distributions that use one of the extremes, this is which extreme to use |
◆ Serialize()
| bool FRawDistribution::Serialize |
( |
FArchive & |
Ar | ) |
|
Serialization.
- 参数
-
| Ar | - The archive with which to serialize. |
- 返回
- true if serialization was successful.
◆ TryGetDistributionObjectFromRawDistributionProperty()
| static UObject * FRawDistribution::TryGetDistributionObjectFromRawDistributionProperty |
( |
FStructProperty * |
Property, |
|
|
uint8 * |
Data |
|
) |
| |
|
static |
Return the UDistribution* variable if the given StructProperty points to a FRawDistribution* struct
- 参数
-
| Property | Some UStructProperyy |
| Data | Memory that owns the property |
- 返回
- The UDisitribution* object if this is a FRawDistribution* struct, or NULL otherwise
该结构体的文档由以下文件生成:
- Distribution.h
- Distributions.h