FNiagaraVariable

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FNiagaraVariableBase

FNiagaraVariable

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraTypes.h

Include

#include "NiagaraTypes.h"

Syntax

USTRUCT()
struct FNiagaraVariable : public FNiagaraVariableBase

Constructors

Name Description

Public function

FNiagaraVariable()

Public function

FNiagaraVariable

(
    const FNiagaraVariable& Other
)

Public function

FNiagaraVariable

(
    const FNiagaraVariableBase& Other
)

Public function

FNiagaraVariable

(
    const FNiagaraTypeDefinition& InTy...,
    const FName& InName
)

Functions

Name Description

Public function

void

 

AllocateData()

Var data operations.

Public function

void

 

ClearData()

Public function Const

void

 

CopyTo

(
    uint8* Dest
)

Public function Const

int32

 

GetAllocatedSizeInBytes()

Public function

uint8 *

 

GetData()

Public function Const

const uint8 ...

 

GetData()

Public function Const

T

 

GetDoubleValue()

Public function Const

bool

 

GetValue()

Public function Const

T

 

GetValue()

Public function Const

bool

 

HoldsSameData

(
    const FNiagaraVariable& Other
)

Checks if the types match and either both variables are uninitialized or both hold exactly the same data.

Public function Const

bool

 

IsDataAllocated()

Public function

void

 

PostSerialize

(
    const FArchive& Ar
)

Public function Static

int32

 

SearchArrayForPartialNameMatch

(
    const TArray< FNiagaraVariable >& ...,
    const FName& VariableName
)

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Public function

void

 

SetData

(
    const uint8* Data
)

Public function

void

 

SetDoubleValue

(
    const T& Data
)

Public function

void

 

SetValue

(
    const T& Data
)

Public function

void

 

SetValue

(
    const bool& Data
)

Public function Const

FString

 

ToString()

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FNiagaraVariable& Other
)

Check if Name and Type definition are not the same. The actual stored value is not checked here.

Public function Const

bool

 

operator==

(
    const FNiagaraVariable& Other
)

Check if Name and Type definition are the same. The actual stored value is not checked here.