Navigation
API > API/Plugins > API/Plugins/Niagara
Data Interface for interacting with PhysicsAssets
| Name | UNiagaraDataInterfacePhysicsAsset |
| Type | class |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraDataInterfacePhysicsAsset.h |
| Include Path | #include "NiagaraDataInterfacePhysicsAsset.h" |
Syntax
UCLASS (EditInlineNew, Category="Physics", CollapseCategories, Meta=(DisplayName="Physics Asset"),
MinimalAPI)
class UNiagaraDataInterfacePhysicsAsset : public UNiagaraDataInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNiagaraNotifyOnChanged → UNiagaraDataInterfaceBase → UNiagaraDataInterface → UNiagaraDataInterfacePhysicsAsset
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNiagaraDataInterfacePhysicsAsset
(
const FObjectInitializer& ObjectInitializer |
NiagaraDataInterfacePhysicsAsset.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DefaultSource | TObjectPtr< UPhysicsAsset > | Skeletal Mesh from which the Physics Asset will be found. | NiagaraDataInterfacePhysicsAsset.h |
|
| MeshUserParameter | FNiagaraUserParameterBinding | Reference to a user parameter if we're reading one. | NiagaraDataInterfacePhysicsAsset.h |
|
| PhysicsAssets | TArray< TWeakObjectPtr< class UPhysicsAsset > > | The source asset from which to sample | NiagaraDataInterfacePhysicsAsset.h | |
| SoftSourceActor | TSoftObjectPtr< AActor > | The source actor from which to sample | NiagaraDataInterfacePhysicsAsset.h |
|
| SourceComponents | TArray< TWeakObjectPtr< class USkeletalMeshComponent > > | The source component from which to sample | NiagaraDataInterfacePhysicsAsset.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ExtractSourceComponent
(
FNiagaraSystemInstance* SystemInstance, |
Extract the source component | NiagaraDataInterfacePhysicsAsset.h | |
void GetClosestDistance
(
FVectorVMExternalFunctionContext& Context |
Get the closest distance | NiagaraDataInterfacePhysicsAsset.h | |
void GetClosestElement
(
FVectorVMExternalFunctionContext& Context |
Get the closest element | NiagaraDataInterfacePhysicsAsset.h | |
void GetClosestPoint
(
FVectorVMExternalFunctionContext& Context |
Get the closest point | NiagaraDataInterfacePhysicsAsset.h | |
void GetElementDistance
(
FVectorVMExternalFunctionContext& Context |
Get the element distance | NiagaraDataInterfacePhysicsAsset.h | |
void GetElementPoint
(
FVectorVMExternalFunctionContext& Context |
Get the element point | NiagaraDataInterfacePhysicsAsset.h | |
void GetNumBoxes
(
FVectorVMExternalFunctionContext& Context |
Get the number of boxes | NiagaraDataInterfacePhysicsAsset.h | |
void GetNumCapsules
(
FVectorVMExternalFunctionContext& Context |
Get the number of capsules | NiagaraDataInterfacePhysicsAsset.h | |
void GetNumSpheres
(
FVectorVMExternalFunctionContext& Context |
Get the number of spheres | NiagaraDataInterfacePhysicsAsset.h | |
void GetProjectionPoint
(
FVectorVMExternalFunctionContext& Context |
Get the projection point | NiagaraDataInterfacePhysicsAsset.h | |
void GetTexturePoint
(
FVectorVMExternalFunctionContext& Context |
Get the closest texture point | NiagaraDataInterfacePhysicsAsset.h |
Overridden from UNiagaraDataInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AppendCompileHash
(
FNiagaraCompileHashVisitor* InVisitor |
GPU simulation functionality | NiagaraDataInterfacePhysicsAsset.h | |
virtual ETickingGroup CalculateTickGroup
(
const void* PerInstanceData |
NiagaraDataInterfacePhysicsAsset.h | ||
virtual bool CanExecuteOnTarget
(
ENiagaraSimTarget Target |
NiagaraDataInterfacePhysicsAsset.h | ||
virtual void DestroyPerInstanceData
(
void* PerInstanceData, |
Destroys the per instance data for this interface. | NiagaraDataInterfacePhysicsAsset.h | |
virtual bool Equals
(
const UNiagaraDataInterface* Other |
Determines if this DataInterface is the same as another. | NiagaraDataInterfacePhysicsAsset.h | |
virtual void GetCommonHLSL
(
FString& OutHLSL |
Allows data interfaces to provide common functionality that will be shared across interfaces on that type. | NiagaraDataInterfacePhysicsAsset.h | |
virtual bool GetFunctionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
NiagaraDataInterfacePhysicsAsset.h | ||
virtual void GetParameterDefinitionHLSL
(
const FNiagaraDataInterfaceGPUParamInfo& ParamInfo, |
NiagaraDataInterfacePhysicsAsset.h | ||
virtual void GetVMExternalFunction
(
const FVMExternalFunctionBindingInfo& BindingInfo, |
UNiagaraDataInterface Interface | NiagaraDataInterfacePhysicsAsset.h | |
virtual bool HasPreSimulateTick() |
NiagaraDataInterfacePhysicsAsset.h | ||
virtual bool HasTickGroupPrereqs() |
NiagaraDataInterfacePhysicsAsset.h | ||
virtual bool InitPerInstanceData
(
void* PerInstanceData, |
Initializes the per instance data for this interface. | NiagaraDataInterfacePhysicsAsset.h | |
virtual int32 PerInstanceDataSize () |
Returns the size of the per instance data for this interface. | NiagaraDataInterfacePhysicsAsset.h | |
virtual bool PerInstanceTick
(
void* PerInstanceData, |
Ticks the per instance data for this interface, if it has any. | NiagaraDataInterfacePhysicsAsset.h | |
virtual void ProvidePerInstanceDataForRenderThread
(
void* DataForRenderThread, |
Subclasses that wish to work with GPU systems/emitters must implement this. | NiagaraDataInterfacePhysicsAsset.h | |
virtual void SetShaderParameters
(
const FNiagaraDataInterfaceSetShaderParametersContext& Context |
Set the shader parameters will only be called if the data interface provided shader parameters. | NiagaraDataInterfacePhysicsAsset.h |
Overridden from UNiagaraDataInterfaceBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BuildShaderParameters
(
FNiagaraShaderParametersBuilder& ShaderParametersBuilder |
NiagaraDataInterfacePhysicsAsset.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostInitProperties() |
UObject Interface | NiagaraDataInterfacePhysicsAsset.h | |
virtual void PostLoad() |
NiagaraDataInterfacePhysicsAsset.h |
Protected
Overridden from UNiagaraDataInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CopyToInternal
(
UNiagaraDataInterface* Destination |
Copy one niagara DI to this | NiagaraDataInterfacePhysicsAsset.h | |
virtual void GetFunctionsInternal
(
TArray< FNiagaraFunctionSignature >& OutFunctions |
NiagaraDataInterfacePhysicsAsset.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SourceActor_DEPRECATED | TObjectPtr< AActor > | NiagaraDataInterfacePhysicsAsset.h |