Navigation
API > API/Plugins > API/Plugins/Niagara
Base class for curve data interfaces which facilitates handling the curve data in a standardized way.
| Name | UNiagaraDataInterfaceCurveBase |
| Type | class |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceCurveBase.h |
| Include Path | #include "NiagaraDataInterfaceCurveBase.h" |
Syntax
UCLASS (EditInlineNew, Abstract, MinimalAPI)
class UNiagaraDataInterfaceCurveBase : public UNiagaraDataInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNiagaraNotifyOnChanged → UNiagaraDataInterfaceBase → UNiagaraDataInterface → UNiagaraDataInterfaceCurveBase
Derived Classes
UNiagaraDataInterfaceCurveBase derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| NiagaraDataInterfaceCurveBase.h | |||
UNiagaraDataInterfaceCurveBase
(
FObjectInitializer const& ObjectInitializer |
NiagaraDataInterfaceCurveBase.h |
Structs
| Name | Remarks |
|---|---|
| FCurveData | Structure to facilitate getting standardized curve information from a curve data interface. |
Enums
Public
| Name | Remarks |
|---|---|
| UNiagaraDataInterfaceCurveBase |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultOptimizeThreshold | float | NiagaraDataInterfaceCurveBase.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bExposeCurve | uint32 | Generates a texture for the curve which can be exposed to material bindings. | NiagaraDataInterfaceCurveBase.h |
|
| bOptimizeLUT | uint32 | Do we optimize the LUT, this saves memory but may introduce errors. | NiagaraDataInterfaceCurveBase.h |
|
| bOverrideOptimizeThreshold | uint32 | NiagaraDataInterfaceCurveBase.h |
|
|
| bUseLUT | uint32 | NiagaraDataInterfaceCurveBase.h |
|
|
| CurveAsset | TObjectPtr< UCurveBase > | NiagaraDataInterfaceCurveBase.h |
|
|
| ExposedName | FName | Sets a custom name for the binding to make it easier to identify. | NiagaraDataInterfaceCurveBase.h |
|
| ExposedTexture | TObjectPtr< class UTexture2D > | The texture generated and exposed to materials, will be nullptr if we do not expose to the renderers. | NiagaraDataInterfaceCurveBase.h | |
| HasEditorData | uint32 | NiagaraDataInterfaceCurveBase.h |
|
|
| OptimizeThreshold | float | Threshold used to optimize the LUT. | NiagaraDataInterfaceCurveBase.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TArray< float > BuildLUT
(
int32 NumEntries |
NiagaraDataInterfaceCurveBase.h | ||
virtual void GetCurveData
(
TArray< FCurveData >& OutCurveData |
Gets information for all of the curves owned by this curve data interface. | NiagaraDataInterfaceCurveBase.h | |
virtual int32 GetCurveNumElems() |
NiagaraDataInterfaceCurveBase.h | ||
virtual FName GetCurveSampleFunctionName() |
NiagaraDataInterfaceCurveBase.h | ||
float GetInvTimeRange() |
NiagaraDataInterfaceCurveBase.h | ||
float GetMaxTime() |
NiagaraDataInterfaceCurveBase.h | ||
float GetMinTime() |
NiagaraDataInterfaceCurveBase.h | ||
void OptimizeLUT() |
NiagaraDataInterfaceCurveBase.h | ||
void SetDefaultLUT() |
NiagaraDataInterfaceCurveBase.h | ||
virtual void SyncCurvesToAsset() |
NiagaraDataInterfaceCurveBase.h | ||
void UpdateExposedTexture() |
NiagaraDataInterfaceCurveBase.h | ||
void UpdateLUT
(
bool bFromSerialize |
NiagaraDataInterfaceCurveBase.h | ||
virtual void UpdateTimeRanges() |
NiagaraDataInterfaceCurveBase.h |
Overridden from UNiagaraDataInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AppendCompileHash
(
FNiagaraCompileHashVisitor* InVisitor |
Allows the generic class defaults version of this class to specify any dependencies/version/etc that might invalidate the compile. | NiagaraDataInterfaceCurveBase.h | |
virtual void CacheStaticBuffers
(
FNiagaraSystemStaticBuffers& StaticBuffers, |
Allows data interfaces to cache any static data that may be shared between instances | NiagaraDataInterfaceCurveBase.h | |
virtual bool CanExecuteOnTarget
(
ENiagaraSimTarget Target |
NiagaraDataInterfaceCurveBase.h | ||
virtual bool CanExposeVariables() |
NiagaraDataInterfaceCurveBase.h | ||
virtual bool Equals
(
const UNiagaraDataInterface* Other |
Determines if this DataInterface is the same as another. | NiagaraDataInterfaceCurveBase.h | |
virtual TArray< FNiagaraDataInterfaceError > GetErrors() |
Refreshes and returns the errors detected with the corresponding data, if any. | NiagaraDataInterfaceCurveBase.h | |
virtual void GetExposedVariables
(
TArray< FNiagaraVariableBase >& OutVariables |
NiagaraDataInterfaceCurveBase.h | ||
virtual bool GetExposedVariableValue
(
const FNiagaraVariableBase& InVariable, |
NiagaraDataInterfaceCurveBase.h | ||
virtual void GetParameterDefinitionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
NiagaraDataInterfaceCurveBase.h | ||
virtual void PostCompile
(
const UNiagaraSystem& OwningSystem |
Called after system compilation completes. Useful for caching any constant, compile dependent data. | NiagaraDataInterfaceCurveBase.h | |
virtual void SetShaderParameters
(
const FNiagaraDataInterfaceSetShaderParametersContext& Context |
Set the shader parameters will only be called if the data interface provided shader parameters. | NiagaraDataInterfaceCurveBase.h |
Overridden from UNiagaraDataInterfaceBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BuildShaderParameters
(
FNiagaraShaderParametersBuilder& ShaderParametersBuilder |
NiagaraDataInterfaceCurveBase.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
NiagaraDataInterfaceCurveBase.h | ||
virtual void PostLoad() |
NiagaraDataInterfaceCurveBase.h | ||
virtual void Serialize
(
FArchive& Ar |
NiagaraDataInterfaceCurveBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CompareLUTS
(
const TArray< float >& OtherLUT |
NiagaraDataInterfaceCurveBase.h | ||
float NormalizeTime
(
float T |
Remap a sample time for this curve to 0 to 1 between first and last keys for LUT access. | NiagaraDataInterfaceCurveBase.h | |
float UnnormalizeTime
(
float T |
Remap a 0 to 1 value between the first and last keys to a real sample time for this curve. | NiagaraDataInterfaceCurveBase.h |
Overridden from UNiagaraDataInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CopyToInternal
(
UNiagaraDataInterface* Destination |
NiagaraDataInterfaceCurveBase.h | ||
virtual void PushToRenderThreadImpl() |
NiagaraDataInterfaceCurveBase.h |