Navigation
API > API/Plugins > API/Plugins/Niagara
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNiagaraMergeable
- UNiagaraDataInterfaceBase
- UNiagaraDataInterface
- UNiagaraDataInterfaceLandscape
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceLandscape.h |
| Include | #include "NiagaraDataInterfaceLandscape.h" |
Syntax
UCLASS (EditInlineNew, Category="Landscape", CollapseCategories,
Meta=(DisplayName="Landscape Sample"), MinimalAPI)
class UNiagaraDataInterfaceLandscape :
public UNiagaraDataInterface ,
public INiagaraSimCacheCustomStorageInterface
Remarks
Data Interface allowing sampling of a Landscape
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bVirtualTexturesSupported | Can be used to ignore virtual textures even if they are defined for the landscape. | |
| TArray< TObjectPtr< UPhysicalMaterial > > | PhysicalMaterials | ||
| TObjectPtr< AActor > | SourceLandscape | ||
| ENDILandscape_SourceMode | SourceMode |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UNiagaraDataInterfaceLandscape
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyLandscape
(
const FNiagaraSystemInstance& SystemInstance, |
||
| ALandscape * | GetLandscape
(
const FNiagaraSystemInstance& SystemInstance, |
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. | |
| bool | CanExecuteOnTarget
(
ENiagaraSimTarget Target |
||
| bool | CopyToInternal
(
UNiagaraDataInterface* Destination |
||
| void | DestroyPerInstanceData
(
void* PerInstanceData, |
Destroys the per instance data for this interface. | |
| bool | Equals
(
const UNiagaraDataInterface* Other |
Determines if this DataInterface is the same as another. | |
| bool | GetFunctionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
||
| void | GetFunctionsInternal
(
TArray< FNiagaraFunctionSignature >& OutFunctions |
||
| void | GetParameterDefinitionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
GPU sim functionality. | |
| bool | |||
| bool | InitPerInstanceData
(
void* PerInstanceData, |
Initializes the per instance data for this interface. | |
| int32 | Returns the size of the per instance data for this interface. | ||
| bool | PerInstanceTick
(
void* PerInstanceData, |
Ticks the per instance data for this interface, if it has any. | |
| void | ProvidePerInstanceDataForRenderThread
(
void* DataForRenderThread, |
Subclasses that wish to work with GPU systems/emitters must implement this. | |
| void | SetShaderParameters
(
const FNiagaraDataInterfaceSetShaderParametersContext& Context |
Set the shader parameters will only be called if the data interface provided shader parameters. | |
| bool | UpgradeFunctionCall
(
FNiagaraFunctionSignature& FunctionSignature |
Allows data interfaces the opportunity to rename / change the function signature and perform an upgrade. |
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 | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
Overridden from INiagaraSimCacheCustomStorageInterface
| Type | Name | Description | |
|---|---|---|---|
| UObject * | SimCacheBeginWrite
(
UObject* SimCache, |
Called when we begin to write data into a simulation cache. | |
| bool | SimCacheReadFrame
(
UObject* StorageObject, |
Virtual bool SimCacheEndWrite(UObject* StorageObject) const override; | |
| bool | SimCacheWriteFrame
(
UObject* StorageObject, |
Called when we are ready to write data into the simulation cache. |
Constants
| Name | Description |
|---|---|
| GetBaseColorName | |
| GetHeightName | |
| GetPhysicalMaterialIndexName | |
| GetWorldNormalName |