Navigation
API > API/Plugins > API/Plugins/Niagara
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNiagaraMergeable
- UNiagaraDataInterfaceBase
- UNiagaraDataInterface
- UNiagaraDataInterfaceCurveBase
- UNiagaraDataInterfaceColorCurve
- UNiagaraDataInterfaceCurve
- UNiagaraDataInterfaceVector2DCurve
- UNiagaraDataInterfaceVector4Curve
- UNiagaraDataInterfaceVectorCurve
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceCurveBase.h |
| Include | #include "NiagaraDataInterfaceCurveBase.h" |
Syntax
UCLASS&40;EditInlineNew, Abstract, MinimalAPI&41;
class UNiagaraDataInterfaceCurveBase : public UNiagaraDataInterface
Remarks
Base class for curve data interfaces which facilitates handling the curve data in a standardized way.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bExposeCurve | Generates a texture for the curve which can be exposed to material bindings. | |
| uint32: 1 | bOptimizeLUT | Do we optimize the LUT, this saves memory but may introduce errors. | |
| uint32: 1 | bOverrideOptimizeThreshold | ||
| uint32: 1 | bUseLUT | ||
| TObjectPtr< UCurveBase > | CurveAsset | ||
| FName | ExposedName | Sets a custom name for the binding to make it easier to identify. | |
| TObjectPtr< class UTexture2D > | ExposedTexture | The texture generated and exposed to materials, will be nullptr if we do not expose to the renderers. | |
| uint32: 1 | HasEditorData | ||
| float | LUTInvTimeRange | ||
| float | LUTMaxTime | ||
| float | LUTMinTime | ||
| float | LUTNumSamplesMinusOne | ||
| uint32 | LUTOffset | ||
| float | OptimizeThreshold | Threshold used to optimize the LUT. | |
| TArray< float > | ShaderLUT |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UNiagaraDataInterfaceCurveBase
(
FObjectInitializer const& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TArray< float > | BuildLUT
(
int32 NumEntries |
||
| bool | CompareLUTS
(
const TArray< float >& OtherLUT |
||
| void | GetCurveData
(
TArray< FCurveData >& OutCurveData |
Gets information for all of the curves owned by this curve data interface. | |
| int32 | |||
| FName | |||
| float | |||
| float | GetMaxTime () |
||
| float | GetMinTime () |
||
| float | NormalizeTime
(
float T |
Remap a sample time for this curve to 0 to 1 between first and last keys for LUT access. | |
| void | OptimizeLUT () |
||
| void | |||
| void | |||
| float | UnnormalizeTime
(
float T |
Remap a 0 to 1 value between the first and last keys to a real sample time for this curve. | |
| void | |||
| void | UpdateLUT
(
bool bFromSerialize |
||
| void |
Overridden from UNiagaraDataInterface
| Type | Name | Description | |
|---|---|---|---|
| bool | AppendCompileHash
(
FNiagaraCompileHashVisitor* InVisitor |
Allows the generic class defaults version of this class to specify any dependencies/version/etc that might invalidate the compile. | |
| void | CacheStaticBuffers
(
FNiagaraSystemStaticBuffers& StaticBuffers, |
Allows data interfaces to cache any static data that may be shared between instances | |
| bool | CanExecuteOnTarget
(
ENiagaraSimTarget Target |
||
| bool | |||
| bool | CopyToInternal
(
UNiagaraDataInterface* Destination |
||
| bool | Equals
(
const UNiagaraDataInterface* Other |
Determines if this DataInterface is the same as another. | |
| TArray< FNiagaraDataInterfaceError > | GetErrors () |
Refreshes and returns the errors detected with the corresponding data, if any. | |
| void | GetExposedVariables
(
TArray< FNiagaraVariableBase >& OutVariables |
||
| bool | GetExposedVariableValue
(
const FNiagaraVariableBase& InVariable, |
||
| void | GetParameterDefinitionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
||
| void | PostCompile () |
Called after system compilation completes. Useful for caching any constant, compile dependent data. | |
| void | |||
| void | SetShaderParameters
(
const FNiagaraDataInterfaceSetShaderParametersContext& Context |
Set the shader parameters will only be called if the data interface provided shader parameters. |
Overridden from UNiagaraDataInterfaceBase
| Type | Name | Description | |
|---|---|---|---|
| void | BuildShaderParameters
(
FNiagaraShaderParametersBuilder& ShaderParametersBuilder |
Override this method to provide parameters to the GPU (SRV / UAV / Constants / etc) The most common usage will be to provide a single structure which is nested with other parameters. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCurveData | Structure to facilitate getting standardized curve information from a curve data interface. |
Constants
| Name | Description |
|---|---|
| CurveLUTDefaultWidth | |
| DefaultOptimizeThreshold |