Navigation
API > API/Plugins > API/Plugins/Niagara
| Name | FNiagaraVariable |
| Type | struct |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraTypes.h |
| Include Path | #include "NiagaraTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FNiagaraVariable : public FNiagaraVariableBase
Inheritance Hierarchy
- FNiagaraVariableBase → FNiagaraVariable
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNiagaraVariable
(
const FNiagaraVariableBase& Other |
NiagaraTypes.h | ||
| NiagaraTypes.h | |||
FNiagaraVariable
(
const FNiagaraTypeDefinition& InType, |
NiagaraTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| VarData | TArray< uint8 > | This gets serialized but do we need to worry about endianness doing things like this? If not, where does that get handled? TODO: Remove storage here entirely and move everything to an FNiagaraParameterStore. | NiagaraTypes.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AllocateData() |
Var data operations. | NiagaraTypes.h | |
void ClearData() |
NiagaraTypes.h | ||
void CopyTo
(
uint8* Dest |
NiagaraTypes.h | ||
int32 GetAllocatedSizeInBytes() |
NiagaraTypes.h | ||
uint8 * GetData () |
NiagaraTypes.h | ||
const uint8 * GetData () |
NiagaraTypes.h | ||
T GetValue () |
NiagaraTypes.h | ||
bool GetValue () |
NiagaraTypes.h | ||
bool HoldsSameData
(
const FNiagaraVariable& Other |
Checks if the types match and either both variables are uninitialized or both hold exactly the same data. | NiagaraTypes.h | |
bool IsDataAllocated() |
NiagaraTypes.h | ||
void PostSerialize
(
const FArchive& Ar |
NiagaraTypes.h | ||
bool Serialize
(
FArchive& Ar |
NiagaraTypes.h | ||
void SetData
(
const uint8* Data |
NiagaraTypes.h | ||
void SetValue
(
const T& Data |
NiagaraTypes.h | ||
void SetValue
(
const bool& Data |
NiagaraTypes.h | ||
FString ToString() |
NiagaraTypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ConvertFromBaseArray
(
TConstArrayView< FNiagaraVariableBase > FromVariables, |
NiagaraTypes.h | ||
static void ConvertToBaseArray
(
TConstArrayView< FNiagaraVariable > FromVariables, |
NiagaraTypes.h | ||
static int32 SearchArrayForPartialNameMatch
(
const TArray< FNiagaraVariable >& Variables, |
NiagaraTypes.h |