UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDistributionLookupTable Struct Reference

#include <Distribution.h>

Public Member Functions

 FDistributionLookupTable ()
 
void Empty ()
 
bool IsEmpty () const
 
float GetValuesPerEntry () const
 
float GetValueCount () const
 
void GetEntry (float Time, const float *&Entry1, const float *&Entry2, float &LerpAlpha) const
 
void GetRange (float *OutMinValues, float *OutMaxValues)
 

Public Attributes

float TimeScale
 
float TimeBias
 
TArray< floatValues
 
uint8 Op
 
uint8 EntryCount
 
uint8 EntryStride
 
uint8 SubEntryStride
 
uint8 LockFlag
 

Detailed Description

Lookup table for distributions.

Lookup table used to sample distributions at runtime.

Constructor & Destructor Documentation

◆ FDistributionLookupTable()

FDistributionLookupTable::FDistributionLookupTable ( )
inline

Default constructor.

Member Function Documentation

◆ Empty()

void FDistributionLookupTable::Empty ( )
inline

Empties the table of all values.

◆ GetEntry()

void FDistributionLookupTable::GetEntry ( float  Time,
const float *&  Entry1,
const float *&  Entry2,
float LerpAlpha 
) const
inline

Get the entry for Time and the one after it for interpolating (along with an alpha for interpolation)

Parameters
TimeThe time we are looking to retrieve
Entry1Out variable that is the first (or only) entry
Entry2Out variable that is the second entry (for interpolating)
LerpAlphaOut variable that is the alpha for interpolating between Entry1 and Entry2

◆ GetRange()

void FDistributionLookupTable::GetRange ( float OutMinValues,
float OutMaxValues 
)
inline

Get the range of values produced by the table.

Note
: in the case of a constant curve, this will not be exact!
Parameters
OutMinValues- The smallest values produced by this table.
OutMaxValues- The largest values produced by this table.

◆ GetValueCount()

float FDistributionLookupTable::GetValueCount ( ) const
inline

Compute the number of values contained in the table.

◆ GetValuesPerEntry()

float FDistributionLookupTable::GetValuesPerEntry ( ) const
inline

Computes the number of Values per entry in the table.

◆ IsEmpty()

bool FDistributionLookupTable::IsEmpty ( ) const
inline

Returns true if the lookup table contains no values.

Member Data Documentation

◆ EntryCount

uint8 FDistributionLookupTable::EntryCount

Number of entries in the table.

◆ EntryStride

uint8 FDistributionLookupTable::EntryStride

Number of values between entries [1,8].

◆ LockFlag

uint8 FDistributionLookupTable::LockFlag

Lock axes flag for vector distributions.

◆ Op

uint8 FDistributionLookupTable::Op

Operation for which the table was built.

◆ SubEntryStride

uint8 FDistributionLookupTable::SubEntryStride

Number of values between sub-entries [0,4].

◆ TimeBias

float FDistributionLookupTable::TimeBias

Absolute time of the first value

◆ TimeScale

float FDistributionLookupTable::TimeScale

Time between values in the lookup table

◆ Values

TArray< float > FDistributionLookupTable::Values

Values in the table.


The documentation for this struct was generated from the following files: