engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Public 属性 | 静态 Public 属性 | Protected 成员函数 | 静态 Protected 成员函数 | 友元 | 所有成员列表
UParticleSystemComponent类 参考

A particle emitter. 更多...

#include <ParticleSystemComponent.h>

继承自 UFXSystemComponent .

Public 类型

typedef TArray< struct FParticleAnimTrailEmitterInstance *, TInlineAllocator< 8 > > TrailEmitterArray
 Array of trail emitters.
 

Public 成员函数

virtual void Activate (bool bReset=false) override
 Activates the SceneComponent, should be overridden by native child classes. 更多...
 
virtual void ActivateSystem (bool bFlagAsJustAttached=false) override
 Activate the system
 
virtual UObject const * AdditionalStatObject () const override
 Give a readable name for this component, including asset name if applicable
 
virtual void ApplyWorldOffset (const FVector &InOffset, bool bWorldShift) override
 Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location 更多...
 
void AutoPopulateInstanceProperties ()
 Auto-populate the instance parameters based on contained modules.
 
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
void BeginTrails (FName InFirstSocketName, FName InSecondSocketName, ETrailWidthMode InWidthMode, float InWidth)
 Begins all trail emitters in this component. 更多...
 
virtual FBoxSphereBounds CalcBounds (const FTransform &LocalToWorld) const override
 Calculate the bounds of the component. 更多...
 
bool CanBeOccluded () const
 true if this component can be occluded.
 
bool CanConsiderInvisible () const
 True if this component can be considered invisible and potentially culled.
 
FORCEINLINE bool CanTickInAnyThread ()
 return true if this psys can tick in any thread
 
void ClearParameter (FName ParameterName, enum EParticleSysParamType ParameterType=EParticleSysParamType(0))
 clears the specified parameter, returning it to the default value set in the template 更多...
 
void ComputeCanTickInAnyThread ()
 Decide if this psys can tick in any thread, and set bIsElligibleForAsyncTick
 
void ComputeTickComponent_Concurrent ()
 Possibly parallel phase of TickComponent
 
void ConditionalCacheViewRelevanceFlags (class UParticleSystem *NewTemplate=NULL)
 Cache the view-relevance for each emitter at each LOD level if needed. 更多...
 
virtual class UMaterialInstanceDynamic * CreateNamedDynamicMaterialInstance (FName InName, class UMaterialInterface *SourceMaterial=NULL)
 Creates a Dynamic Material Instance for the specified named material override, optionally from the supplied material. 更多...
 
virtual FPrimitiveSceneProxy * CreateSceneProxy () override
 Creates a proxy to represent the primitive to the scene manager in the rendering thread. 更多...
 
virtual void Deactivate () override
 Deactivates the SceneComponent.
 
void DeactivateSystem ()
 Deactivate the system
 
virtual int32 DetermineLODLevelForLocation (const FVector &EffectLocation)
 This will determine which LOD to use based off the specific ParticleSystem passed in and the distance to where that PS is being displayed. 更多...
 
void EndTrails ()
 Ends all trail emitters in this component.
 
void FinalizeTickComponent ()
 After the possibly parallel phase of TickComponent, we fire events, etc
 
UParticleSystemReplay * FindReplayClipForIDNumber (const int32 InClipIDNumber)
 Finds the replay clip of the specified ID number 更多...
 
virtual void FinishDestroy () override
 Called to finish destroying the object. 更多...
 
FORCEINLINE void ForceAsyncWorkCompletion (EForceAsyncWorkCompletion Behavior, bool bDefinitelyGameThread, bool InSkipUpdateDynamicDataDuringTick)
 If there is async work outstanding, force it to be completed now
 
FORCEINLINE void ForceAsyncWorkCompletion (EForceAsyncWorkCompletion Behavior, bool bDefinitelyGameThread=true) const
 If there is async work outstanding, force it to be completed now
 
void ForceUpdateBounds ()
 Force the component to update its bounding box.
 
void GenerateParticleEvent (const FName InEventName, const float InEmitterTime, const FVector InLocation, const FVector InDirection, const FVector InVelocity)
 Record a kismet event. 更多...
 
virtual bool GetActorParameter (const FName InName, class AActor *&OutActor)
 Retrieve the Actor parameter value for the given name. 更多...
 
virtual bool GetAnyVectorParameter (const FName InName, FVector &OutVector)
 Retrieve the Vector parameter value for the given name...also looks for colors and floats and returns those 更多...
 
float GetApproxDistanceSquared (FVector Point) const
 Returns the approximate distance squared from this component to the passed location.
 
uint32 GetApproxMemoryUsage () const override
 Returns an approximate memory usage value for this component.
 
virtual bool GetBeamEndPoint (int32 EmitterIndex, FVector &OutEndPoint) const
 Get the beam end point 更多...
 
virtual bool GetBeamSourcePoint (int32 EmitterIndex, int32 SourceIndex, FVector &OutSourcePoint) const
 Get the beam source point 更多...
 
virtual bool GetBeamSourceStrength (int32 EmitterIndex, int32 SourceIndex, float &OutSourceStrength) const
 Get the beam source strength 更多...
 
virtual bool GetBeamSourceTangent (int32 EmitterIndex, int32 SourceIndex, FVector &OutTangentPoint) const
 Get the beam source tangent 更多...
 
virtual bool GetBeamTargetPoint (int32 EmitterIndex, int32 TargetIndex, FVector &OutTargetPoint) const
 Get the beam target point 更多...
 
virtual bool GetBeamTargetStrength (int32 EmitterIndex, int32 TargetIndex, float &OutTargetStrength) const
 Get the beam target strength 更多...
 
virtual bool GetBeamTargetTangent (int32 EmitterIndex, int32 TargetIndex, FVector &OutTangentPoint) const
 Get the beam target tangent 更多...
 
virtual FBodyInstance * GetBodyInstance (FName BoneName=NAME_None, bool bGetWelded=true) const override
 Returns BodyInstance of the component. 更多...
 
virtual bool GetColorParameter (const FName InName, FLinearColor &OutColor)
 Retrieve the Color parameter value for the given name. 更多...
 
int32 GetCurrentDetailMode () const
 Decide which detail mode should be applied to this particle system. 更多...
 
virtual FString GetDetailedInfoInternal () const override
 This function actually does the work for the GetDetailedInfo() and is virtual. 更多...
 
virtual bool GetFloatParameter (const FName InName, float &OutFloat)
 Retrieve the Float parameter value for the given name. 更多...
 
virtual UFXSystemAsset * GetFXSystemAsset () const
 Get the referenced FXSystem asset.
 
virtual int32 GetLODLevel ()
 Get the LOD level of the particle system
 
virtual UMaterialInterface * GetMaterial (int32 ElementIndex) const override
 Returns the material used by the element at the specified index 更多...
 
virtual bool GetMaterialParameter (const FName InName, class UMaterialInterface *&OutMaterial)
 Retrieve the Material parameter value for the given name. 更多...
 
virtual class UMaterialInterface * GetNamedMaterial (FName InName) const
 Returns a named material. 更多...
 
virtual int32 GetNamedMaterialIndex (FName InName) const
 Returns the index into the EmitterMaterials array for this named. 更多...
 
virtual FName GetNameForMaterial (UMaterialInterface *InMaterial) const
 returns the name associated with the passed in material, returns NAME_None if it is not found
 
int32 GetNumActiveParticles () const
 Get the current number of active particles in this system
 
virtual int32 GetNumMaterials () const override
 Return number of material elements in this primitive
 
virtual void GetOwnedTrailEmitters (TrailEmitterArray &OutTrailEmitters, const void *InOwner, bool bSetOwner=false)
 Fills the passed array with all trail emitters associated with a particular object. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) override
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
virtual void GetStreamingRenderAssetInfo (FStreamingTextureLevelContext &LevelContext, TArray< FStreamingRenderAssetPrimitiveInfo > &OutStreamingRenderAssets) const override
 Enumerates the streaming textures/meshes used by the primitive. 更多...
 
virtual void GetUsedMaterials (TArray< UMaterialInterface * > &OutMaterials, bool bGetDebugMaterials=false) const override
 Retrieves the materials used in this component 更多...
 
virtual bool GetVectorParameter (const FName InName, FVector &OutVector)
 Retrieve the Vector parameter value for the given name. 更多...
 
virtual bool IsComponentTickEnabled () const override
 Returns whether this component has tick enabled or not
 
virtual bool IsReadyForOwnerToAutoDestroy () const override
 Overridable check for a component to indicate to its Owner that it should prevent the Actor from auto destroying when finished
 
virtual void OnAttachmentChanged () override
 Called when AttachParent changes, to allow the scene to update its attachment state.
 
virtual void OnChildAttached (USceneComponent *ChildComponent) override
 Called after a child scene component is attached to this component. 更多...
 
virtual void OnChildDetached (USceneComponent *ChildComponent) override
 Called after a child scene component is detached from this component. 更多...
 
virtual void OnEndOfFrameUpdateDuringTick () override
 Allows components to handle an EOF update happening mid tick. 更多...
 
void OnSignificanceChanged (bool bSignificant, bool bApplyToEmitters, bool bAsync=false)
 When the overall significance for the component is changed.
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
void ReportEventBurst (const FName InEventName, const float InEmitterTime, const int32 ParticleCount, const FVector InLocation, const TArray< class UParticleModuleEventSendToGame * > &InEventData)
 Record a bursting event. 更多...
 
void ReportEventCollision (const FName InEventName, const float InEmitterTime, const FVector InLocation, const FVector InDirection, const FVector InVelocity, const TArray< class UParticleModuleEventSendToGame * > &InEventData, const float InParticleTime, const FVector InNormal, const float InTime, const int32 InItem, const FName InBoneName, UPhysicalMaterial *PhysMat)
 Record a collision event. 更多...
 
void ReportEventDeath (const FName InEventName, const float InEmitterTime, const FVector InLocation, const FVector InVelocity, const TArray< class UParticleModuleEventSendToGame * > &InEventData, const float InParticleTime)
 Record a death event. 更多...
 
void ReportEventSpawn (const FName InEventName, const float InEmitterTime, const FVector InLocation, const FVector InVelocity, const TArray< class UParticleModuleEventSendToGame * > &InEventData)
 Event reporting... 更多...
 
void ResetToDefaults ()
 stops the emitter, unregisters the component, and resets the component's properties to the values of its template
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SetActorParameter (FName ParameterName, class AActor *Param) override
 Set a named actor instance parameter on this ParticleSystemComponent. 更多...
 
void SetAutoAttachmentParameters (USceneComponent *Parent, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule) override
 Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationRule, AutoAttachRotationRule, AutoAttachScaleRule to the specified parameters. 更多...
 
void SetAutoAttachParams (USceneComponent *Parent, FName SocketName=NAME_None, EAttachLocation::Type LocationType=EAttachLocation::KeepRelativeOffset)
 DEPRECATED: Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationType to the specified parameters. 更多...
 
virtual void SetBeamEndPoint (int32 EmitterIndex, FVector NewEndPoint)
 Set the beam end point 更多...
 
virtual void SetBeamSourcePoint (int32 EmitterIndex, FVector NewSourcePoint, int32 SourceIndex)
 Set the beam source point 更多...
 
virtual void SetBeamSourceStrength (int32 EmitterIndex, float NewSourceStrength, int32 SourceIndex)
 Set the beam source strength 更多...
 
virtual void SetBeamSourceTangent (int32 EmitterIndex, FVector NewTangentPoint, int32 SourceIndex)
 Set the beam source tangent 更多...
 
virtual void SetBeamTargetPoint (int32 EmitterIndex, FVector NewTargetPoint, int32 TargetIndex)
 Set the beam target point 更多...
 
virtual void SetBeamTargetStrength (int32 EmitterIndex, float NewTargetStrength, int32 TargetIndex)
 Set the beam target strength 更多...
 
virtual void SetBeamTargetTangent (int32 EmitterIndex, FVector NewTangentPoint, int32 TargetIndex)
 Set the beam target tangent 更多...
 
void SetBoolParameter (FName ParameterName, bool Param) override
 Set a named float instance parameter on this ParticleSystemComponent. 更多...
 
void SetColorParameter (FName ParameterName, FLinearColor Param) override
 Set a named color instance parameter on this ParticleSystemComponent. 更多...
 
virtual void SetComponentTickEnabled (bool bEnabled) override
 Set this component's tick functions to be enabled or disabled. 更多...
 
void SetEmitterEnable (FName EmitterName, bool bNewEnableState) override
 Enables/Disables a sub-emitter 更多...
 
void SetFloatParameter (FName ParameterName, float Param) override
 Change a named float parameter
 
void SetFloatRandParameter (FName ParameterName, float Param, float ParamLow)
 Set a named random float instance parameter on this ParticleSystemComponent. 更多...
 
void SetIntParameter (FName ParameterName, int Param) override
 Set a named float instance parameter on this ParticleSystemComponent. 更多...
 
virtual void SetLODLevel (int32 InLODLevel)
 Set the LOD level of the particle system
 
FORCEINLINE void SetManagingSignificance (bool bManageSignificance)
 Called from game code when the component begins having it's significance managed.
 
virtual void SetMaterial (int32 ElementIndex, UMaterialInterface *Material) override
 Changes the material applied to an element of the mesh. 更多...
 
virtual void SetMaterialByName (FName MaterialSlotName, class UMaterialInterface *SourceMaterial) override
 Changes the material applied to an element of the mesh. 更多...
 
void SetMaterialParameter (FName ParameterName, class UMaterialInterface *Param)
 Set a named material instance parameter on this ParticleSystemComponent. 更多...
 
void SetRequiredSignificance (EParticleSignificanceLevel NewRequiredSignificance)
 Called from game code when the significance required for a component changes.
 
void SetTemplate (class UParticleSystem *NewTemplate)
 Change the ParticleSystem used by this ParticleSystemComponent
 
void SetTrailSourceData (FName InFirstSocketName, FName InSecondSocketName, ETrailWidthMode InWidthMode, float InWidth)
 Sets the defining data for all trails in this component. 更多...
 
void SetVectorParameter (FName ParameterName, FVector Param) override
 Set a named vector instance parameter on this ParticleSystemComponent. 更多...
 
void SetVectorRandParameter (FName ParameterName, const FVector &Param, const FVector &ParamLow)
 Set a named random vector instance parameter on this ParticleSystemComponent. 更多...
 
void SetVectorUnitRandParameter (FName ParameterName, const FVector &Param, const FVector &ParamLow)
 Set a named random unit vector instance parameter on this ParticleSystemComponent. 更多...
 
bool ShouldManageSignificance () const
 Whether this component should have it's significance managed by game code.
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 Function called every frame on this ActorComponent. 更多...
 

Public 属性

float AccumLODDistanceCheckTime
 LOD updating...
 
float AccumTickTime
 Used to accumulate total tick time to determine whether system can be skipped ticking if not visible.
 
EAttachmentRule AutoAttachLocationRule
 Options for how we handle our location when we attach to the AutoAttachParent, if bAutoManageAttachment is true. 更多...
 
TWeakObjectPtr< USceneComponent > AutoAttachParent
 Component we automatically attach to when activated, if bAutoManageAttachment is true. 更多...
 
EAttachmentRule AutoAttachRotationRule
 Options for how we handle our rotation when we attach to the AutoAttachParent, if bAutoManageAttachment is true. 更多...
 
EAttachmentRule AutoAttachScaleRule
 Options for how we handle our scale when we attach to the AutoAttachParent, if bAutoManageAttachment is true. 更多...
 
FName AutoAttachSocketName
 Socket we automatically attach to on the AutoAttachParent, if bAutoManageAttachment is true. 更多...
 
uint8 bAllowRecycling:1
 If true, this Particle System will be available for recycling after it has completed. 更多...
 
uint8 bAutoAttachWeldSimulatedBodies:1
 Option for how we handle bWeldSimulatedBodies when we attach to the AutoAttachParent, if bAutoManageAttachment is true. 更多...
 
uint8 bAutoManageAttachment:1
 True if we should automatically attach to AutoAttachParent when activated, and detach from our parent when completed. 更多...
 
uint8 bDeactivateTriggered: 1
 If true, someone has requested this component deactivate.
 
uint8 bForcedInActive:1
 This is set when any of our "don't tick me" timeout values have fired
 
uint8 bForceLODUpdateFromRenderer:1
 If true, force an LOD update from the renderer.
 
uint8 bHasBeenActivated:1
 This flag will be set the first time the PSysComp is activated... used to prevent auto activated PSysComps from calling InitParticles twice on level load
 
uint8 bIsManagingSignificance: 1
 If this component is having it's significance managed by gameplay code.
 
uint8 bIsViewRelevanceDirty: 1
 If true, the ViewRelevanceFlags are dirty and should be recached
 
uint8 bJustRegistered:1
 Indicates that the component has not been ticked since being registered.
 
uint8 bOverrideLODMethod:1
 indicates that the component's LODMethod overrides the Template's
 
uint8 bResetTriggered: 1
 If true, someone has requested this component reset.
 
uint8 bSkipUpdateDynamicDataDuringTick:1
 Flag indicating that dynamic updating of render data should NOT occur during Tick. 更多...
 
uint8 bUpdateOnDedicatedServer:1
 whether to update the particle system on dedicated servers
 
TArray< struct FParticleEventBurstData > BurstEvents
 The Burst events that occurred in this PSysComp.
 
uint8 bWasActive:1
 True if this was active before being unregistered or otherwise reset, if so reactivate it
 
uint8 bWasManagingSignificance: 1
 If this component was previously having it's significance managed by gameplay code. 更多...
 
TArray< FMaterialRelevance > CachedViewRelevanceFlags
 The view relevance flags for each LODLevel.
 
TArray< struct FParticleEventCollideData > CollisionEvents
 The Collision events that occurred in this PSysComp.
 
float CustomTimeDilation
 Scales DeltaTime in UParticleSystemComponent::Tick(...)
 
TArray< struct FParticleEventDeathData > DeathEvents
 The Death events that occurred in this PSysComp.
 
float EmitterDelay
 This is created at start up and then added to each emitter
 
TArray< struct FParticleSysParam > InstanceParameters
 Array holding name instance parameters for this ParticleSystemComponent. 更多...
 
TArray< struct FParticleEventKismetData > KismetEvents
 The Kismet events that occurred for this PSysComp.
 
float LastSignificantTime
 Time in seconds since we were last considered significant.
 
TEnumAsByte< enum ParticleSystemLODMethod > LODMethod
 The method of LOD level determination to utilize for this particle system
 
float MaxTimeBeforeForceUpdateTransform
 Time between forced UpdateTransforms for systems that use dynamically calculated bounds, Which is effectively how often the bounds are shrunk.
 
EPSCPoolMethod PoolingMethod
 If this PSC is pooling.
 
FRandomStream RandomStream
 Stream of random values to use with this component
 
class FRenderCommandFence * ReleaseResourcesFence
 Command fence used to shut down properly
 
int32 ReplayClipIDNumber
 Clip ID number we're either playing back or capturing to, depending on the value of ReplayState.
 
TArray< class UParticleSystemReplay * > ReplayClips
 Array of replay clips for this particle system component. 更多...
 
int32 ReplayFrameIndex
 The current replay frame for playback
 
TEnumAsByte< enum ParticleReplayState > ReplayState
 Current particle 'replay state'. 更多...
 
EParticleSignificanceLevel RequiredSignificance
 The significance this component requires of it's emitters for them to be enabled.
 
float SecondsBeforeInactive
 Number of seconds of emitter not being rendered that need to pass before it no longer gets ticked/ becomes inactive.
 
TArray< struct FParticleEventSpawnData > SpawnEvents
 The Spawn events that occurred in this PSysComp.
 

静态 Public 属性

static FOnSystemPreActivationChange OnSystemPreActivationChange
 Static delegate called for all systems on an activation change.
 

Protected 成员函数

void ClearDynamicData ()
 Clears dynamic data on the rendering thread.
 
FParticleDynamicData * CreateDynamicData (ERHIFeatureLevel::Type InFeatureLevel)
 Creates dynamic particle data for rendering the particle system this frame. 更多...
 
virtual void CreateRenderState_Concurrent (FRegisterComponentContext *Context) override
 Used to create any rendering thread information for this component 更多...
 
virtual void DestroyRenderState_Concurrent () override
 Used to shut down any rendering thread structure for this component 更多...
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnUnregister () override
 Called when a component is unregistered. 更多...
 
void OrientZAxisTowardCamera ()
 Orients the Z axis of the ParticleSystemComponent toward the camera while preserving the X axis direction
 
virtual void SendRenderDynamicData_Concurrent () override
 Called to send dynamic data for this component to the rendering thread
 
virtual void SendRenderTransform_Concurrent () override
 Called to send a transform update for this component to the rendering thread 更多...
 
virtual bool ShouldActivate () const override
 Return true if this component is in a state where it can be activated normally.
 

静态 Protected 成员函数

static FDynamicEmitterDataBase * CreateDynamicDataFromReplay (FParticleEmitterInstance *EmitterInstance, const FDynamicEmitterReplayDataBase *EmitterReplayData, bool bSelected, ERHIFeatureLevel::Type InFeatureLevel)
 Static: Supplied with a chunk of replay data, this method will create dynamic emitter data that can be used to render the particle system 更多...
 

友元

class FParticleSystemWorldManager
 

详细描述

A particle emitter.

成员函数说明

◆ Activate()

virtual void UParticleSystemComponent::Activate ( bool  bReset = false)
overridevirtual

Activates the SceneComponent, should be overridden by native child classes.

参数
bReset- Whether the activation should happen even if ShouldActivate returns false.

重载 UActorComponent .

◆ ApplyWorldOffset()

virtual void UParticleSystemComponent::ApplyWorldOffset ( const FVector &  InOffset,
bool  bWorldShift 
)
overridevirtual

Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location

参数
InWorldOffsetOffset vector the actor shifted by
bWorldShiftWhether this call is part of whole world shifting

重载 USceneComponent .

◆ BeginDestroy()

virtual void UParticleSystemComponent::BeginDestroy ( )
overridevirtual

Called before destroying the object.

This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process.

重载 UPrimitiveComponent .

◆ BeginTrails()

void UParticleSystemComponent::BeginTrails ( FName  InFirstSocketName,
FName  InSecondSocketName,
ETrailWidthMode  InWidthMode,
float  InWidth 
)

Begins all trail emitters in this component.

参数
InFirstSocketNameThe name of the first socket for the trail.
InSecondSocketNameThe name of the second socket for the trail.
InWidthModeHow the width value is applied to the trail.
InWidthThe width of the trail.

◆ CalcBounds()

virtual FBoxSphereBounds UParticleSystemComponent::CalcBounds ( const FTransform &  LocalToWorld) const
overridevirtual

Calculate the bounds of the component.

Default behavior is a bounding box/sphere of zero size.

重载 USceneComponent .

◆ ClearParameter()

void UParticleSystemComponent::ClearParameter ( FName  ParameterName,
enum EParticleSysParamType  ParameterType = EParticleSysParamType(0) 
)

clears the specified parameter, returning it to the default value set in the template

参数
ParameterNamename of parameter to remove
ParameterTypetype of parameter to remove; if omitted or PSPT_None is specified, all parameters with the given name are removed

◆ ConditionalCacheViewRelevanceFlags()

void UParticleSystemComponent::ConditionalCacheViewRelevanceFlags ( class UParticleSystem *  NewTemplate = NULL)

Cache the view-relevance for each emitter at each LOD level if needed.

参数
NewTemplateThe UParticleSystem* to use as the template. If NULL, use the currently set template.

◆ CreateDynamicData()

FParticleDynamicData * UParticleSystemComponent::CreateDynamicData ( ERHIFeatureLevel::Type  InFeatureLevel)
protected

Creates dynamic particle data for rendering the particle system this frame.

This function handle creation of dynamic data for regularly simulated particles, but also handles capture and playback of particle replay data.

参数
InFeatureLevel- The relevant shader feature level.
返回
Returns the dynamic data to render this frame

◆ CreateDynamicDataFromReplay()

static FDynamicEmitterDataBase * UParticleSystemComponent::CreateDynamicDataFromReplay ( FParticleEmitterInstance *  EmitterInstance,
const FDynamicEmitterReplayDataBase *  EmitterReplayData,
bool  bSelected,
ERHIFeatureLevel::Type  InFeatureLevel 
)
staticprotected

Static: Supplied with a chunk of replay data, this method will create dynamic emitter data that can be used to render the particle system

参数
EmitterInstanceEmitter instance this replay is playing on
EmitterReplayDataIncoming replay data of any time, cannot be NULL
bSelectedtrue if the particle system is currently selected
InFeatureLevelThe relevant shader feature level
返回
The newly created dynamic data, or NULL on failure

◆ CreateNamedDynamicMaterialInstance()

virtual class UMaterialInstanceDynamic * UParticleSystemComponent::CreateNamedDynamicMaterialInstance ( FName  InName,
class UMaterialInterface *  SourceMaterial = NULL 
)
virtual

Creates a Dynamic Material Instance for the specified named material override, optionally from the supplied material.

参数
Name- The slot name of the material to replace. If invalid, the material is unchanged and NULL is returned.

◆ CreateRenderState_Concurrent()

virtual void UParticleSystemComponent::CreateRenderState_Concurrent ( FRegisterComponentContext *  Context)
overrideprotectedvirtual

Used to create any rendering thread information for this component

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UPrimitiveComponent .

◆ CreateSceneProxy()

virtual FPrimitiveSceneProxy * UParticleSystemComponent::CreateSceneProxy ( )
overridevirtual

Creates a proxy to represent the primitive to the scene manager in the rendering thread.

返回
The proxy object.

重载 UPrimitiveComponent .

◆ DestroyRenderState_Concurrent()

virtual void UParticleSystemComponent::DestroyRenderState_Concurrent ( )
overrideprotectedvirtual

Used to shut down any rendering thread structure for this component

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UPrimitiveComponent .

◆ DetermineLODLevelForLocation()

virtual int32 UParticleSystemComponent::DetermineLODLevelForLocation ( const FVector &  EffectLocation)
virtual

This will determine which LOD to use based off the specific ParticleSystem passed in and the distance to where that PS is being displayed.

注解
: This is distance based LOD not perf based. Perf and distance are orthogonal concepts.

◆ FindReplayClipForIDNumber()

UParticleSystemReplay * UParticleSystemComponent::FindReplayClipForIDNumber ( const int32  InClipIDNumber)

Finds the replay clip of the specified ID number

返回
Returns the replay clip or NULL if none

◆ FinishDestroy()

virtual void UParticleSystemComponent::FinishDestroy ( )
overridevirtual

Called to finish destroying the object.

After UObject::FinishDestroy is called, the object's memory should no longer be accessed.

警告
Because properties are destroyed here, Super::FinishDestroy() should always be called at the end of your child class's FinishDestroy() method, rather than at the beginning.

重载 UPrimitiveComponent .

◆ GenerateParticleEvent()

void UParticleSystemComponent::GenerateParticleEvent ( const FName  InEventName,
const float  InEmitterTime,
const FVector  InLocation,
const FVector  InDirection,
const FVector  InVelocity 
)

Record a kismet event.

参数
InEventNameThe name of the event that fired.
InEmitterTimeThe emitter time when the event fired.
InLocationThe location of the particle when the event fired.
InVelocityThe velocity of the particle when the event fired.
InNormalNormal vector of the collision in coordinate system of the returner. Zero=none.

◆ GetActorParameter()

virtual bool UParticleSystemComponent::GetActorParameter ( const FName  InName,
class AActor *&  OutActor 
)
virtual

Retrieve the Actor parameter value for the given name.

参数
InNameName of the parameter
OutActorThe value of the parameter found
返回
true Parameter was found - OutActor is valid false Parameter was not found - OutActor is invalid

◆ GetAnyVectorParameter()

virtual bool UParticleSystemComponent::GetAnyVectorParameter ( const FName  InName,
FVector &  OutVector 
)
virtual

Retrieve the Vector parameter value for the given name...also looks for colors and floats and returns those

参数
InNameName of the parameter
OutVectorThe value of the parameter found
返回
true Parameter was found - OutVector is valid false Parameter was not found - OutVector is invalid

◆ GetBeamEndPoint()

virtual bool UParticleSystemComponent::GetBeamEndPoint ( int32  EmitterIndex,
FVector &  OutEndPoint 
) const
virtual

Get the beam end point

参数
EmitterIndexThe index of the emitter to get the value of
返回
true EmitterIndex is valid and End point is set - OutEndPoint is valid false EmitterIndex invalid or End point is not set - OutEndPoint is invalid

◆ GetBeamSourcePoint()

virtual bool UParticleSystemComponent::GetBeamSourcePoint ( int32  EmitterIndex,
int32  SourceIndex,
FVector &  OutSourcePoint 
) const
virtual

Get the beam source point

参数
EmitterIndexThe index of the emitter to get
SourceIndexWhich beam within the emitter to get
OutSourcePointValue of source point
返回
true EmitterIndex and SourceIndex are valid - OutSourcePoint is valid false EmitterIndex or SourceIndex is invalid - OutSourcePoint is invalid

◆ GetBeamSourceStrength()

virtual bool UParticleSystemComponent::GetBeamSourceStrength ( int32  EmitterIndex,
int32  SourceIndex,
float &  OutSourceStrength 
) const
virtual

Get the beam source strength

参数
EmitterIndexThe index of the emitter to get
SourceIndexWhich beam within the emitter to get
OutSourceStrengthValue of source tangent
返回
true EmitterIndex and SourceIndex are valid - OutSourceStrength is valid false EmitterIndex or SourceIndex is invalid - OutSourceStrength is invalid

◆ GetBeamSourceTangent()

virtual bool UParticleSystemComponent::GetBeamSourceTangent ( int32  EmitterIndex,
int32  SourceIndex,
FVector &  OutTangentPoint 
) const
virtual

Get the beam source tangent

参数
EmitterIndexThe index of the emitter to get
SourceIndexWhich beam within the emitter to get
OutTangentPointValue of source tangent
返回
true EmitterIndex and SourceIndex are valid - OutTangentPoint is valid false EmitterIndex or SourceIndex is invalid - OutTangentPoint is invalid

◆ GetBeamTargetPoint()

virtual bool UParticleSystemComponent::GetBeamTargetPoint ( int32  EmitterIndex,
int32  TargetIndex,
FVector &  OutTargetPoint 
) const
virtual

Get the beam target point

参数
EmitterIndexThe index of the emitter to get
TargetIndexWhich beam within the emitter to get
OutTargetPointValue of target point
返回
true EmitterIndex and TargetIndex are valid - OutTargetPoint is valid false EmitterIndex or TargetIndex is invalid - OutTargetPoint is invalid

◆ GetBeamTargetStrength()

virtual bool UParticleSystemComponent::GetBeamTargetStrength ( int32  EmitterIndex,
int32  TargetIndex,
float &  OutTargetStrength 
) const
virtual

Get the beam target strength

参数
EmitterIndexThe index of the emitter to get
TargetIndexWhich beam within the emitter to get
OutTargetStrengthValue of target tangent
返回
true EmitterIndex and TargetIndex are valid - OutTargetStrength is valid false EmitterIndex or TargetIndex is invalid - OutTargetStrength is invalid

◆ GetBeamTargetTangent()

virtual bool UParticleSystemComponent::GetBeamTargetTangent ( int32  EmitterIndex,
int32  TargetIndex,
FVector &  OutTangentPoint 
) const
virtual

Get the beam target tangent

参数
EmitterIndexThe index of the emitter to get
TargetIndexWhich beam within the emitter to get
OutTangentPointValue of target tangent
返回
true EmitterIndex and TargetIndex are valid - OutTangentPoint is valid false EmitterIndex or TargetIndex is invalid - OutTangentPoint is invalid

◆ GetBodyInstance()

virtual FBodyInstance * UParticleSystemComponent::GetBodyInstance ( FName  BoneName = NAME_None,
bool  bGetWelded = true 
) const
overridevirtual

Returns BodyInstance of the component.

参数
BoneNameUsed to get body associated with specific bone. NAME_None automatically gets the root most body
bGetWeldedIf the component has been welded to another component and bGetWelded is true we return the single welded BodyInstance that is used in the simulation
返回
Returns the BodyInstance based on various states (does component have multiple bodies? Is the body welded to another body?)

重载 UPrimitiveComponent .

◆ GetColorParameter()

virtual bool UParticleSystemComponent::GetColorParameter ( const FName  InName,
FLinearColor &  OutColor 
)
virtual

Retrieve the Color parameter value for the given name.

参数
InNameName of the parameter
OutColorThe value of the parameter found
返回
true Parameter was found - OutColor is valid false Parameter was not found - OutColor is invalid

◆ GetCurrentDetailMode()

int32 UParticleSystemComponent::GetCurrentDetailMode ( ) const

Decide which detail mode should be applied to this particle system.

If we have an editor override specified, use that. Otherwise use the global cached value

◆ GetDetailedInfoInternal()

virtual FString UParticleSystemComponent::GetDetailedInfoInternal ( ) const
overridevirtual

This function actually does the work for the GetDetailedInfo() and is virtual.


It should only be called from GetDetailedInfo as GetDetailedInfo is safe to call on NULL object pointers

重载 UObject .

◆ GetFloatParameter()

virtual bool UParticleSystemComponent::GetFloatParameter ( const FName  InName,
float &  OutFloat 
)
virtual

Retrieve the Float parameter value for the given name.

参数
InNameName of the parameter
OutFloatThe value of the parameter found
返回
true Parameter was found - OutFloat is valid false Parameter was not found - OutFloat is invalid

◆ GetMaterial()

virtual UMaterialInterface * UParticleSystemComponent::GetMaterial ( int32  ElementIndex) const
overridevirtual

Returns the material used by the element at the specified index

参数
ElementIndex- The element to access the material of.
返回
the material used by the indexed element of this mesh.

重载 UPrimitiveComponent .

◆ GetMaterialParameter()

virtual bool UParticleSystemComponent::GetMaterialParameter ( const FName  InName,
class UMaterialInterface *&  OutMaterial 
)
virtual

Retrieve the Material parameter value for the given name.

参数
InNameName of the parameter
OutMaterialThe value of the parameter found
返回
true Parameter was found - OutMaterial is valid false Parameter was not found - OutMaterial is invalid

◆ GetNamedMaterial()

virtual class UMaterialInterface * UParticleSystemComponent::GetNamedMaterial ( FName  InName) const
virtual

Returns a named material.

If this named material is not found, returns NULL.

◆ GetNamedMaterialIndex()

virtual int32 UParticleSystemComponent::GetNamedMaterialIndex ( FName  InName) const
virtual

Returns the index into the EmitterMaterials array for this named.

If there are no named material slots or this material is not found, INDEX_NONE is returned.

◆ GetOwnedTrailEmitters()

virtual void UParticleSystemComponent::GetOwnedTrailEmitters ( TrailEmitterArray &  OutTrailEmitters,
const void *  InOwner,
bool  bSetOwner = false 
)
virtual

Fills the passed array with all trail emitters associated with a particular object.

参数
OutTrailEmittersThe array to fill with pointers to the trail emitters.
InOwnerThe object that triggered this trail. Can be NULL if no assosiation was set by the owner. Not to be confused with the result of GetOwner().
bSetOwnerIf true, all trail emitters will be set as owned by InOwner.

◆ GetResourceSizeEx()

virtual void UParticleSystemComponent::GetResourceSizeEx ( FResourceSizeEx &  CumulativeResourceSize)
overridevirtual

Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific).

参数
CumulativeResourceSizeStruct used to count up the cumulative size of the resource as to be displayed to artists/LDs in the Editor.

重载 UPrimitiveComponent .

◆ GetStreamingRenderAssetInfo()

virtual void UParticleSystemComponent::GetStreamingRenderAssetInfo ( FStreamingTextureLevelContext &  LevelContext,
TArray< FStreamingRenderAssetPrimitiveInfo > &  OutStreamingRenderAssets 
) const
overridevirtual

Enumerates the streaming textures/meshes used by the primitive.

参数
LevelContext- Level scope context used to process texture streaming build data.
OutStreamingRenderAssets- Upon return, contains a list of the streaming textures/meshes used by the primitive.

重载 UPrimitiveComponent .

◆ GetUsedMaterials()

virtual void UParticleSystemComponent::GetUsedMaterials ( TArray< UMaterialInterface * > &  OutMaterials,
bool  bGetDebugMaterials = false 
) const
overridevirtual

Retrieves the materials used in this component

参数
OutMaterialsThe list of used materials.

重载 UPrimitiveComponent .

◆ GetVectorParameter()

virtual bool UParticleSystemComponent::GetVectorParameter ( const FName  InName,
FVector &  OutVector 
)
virtual

Retrieve the Vector parameter value for the given name.

参数
InNameName of the parameter
OutVectorThe value of the parameter found
返回
true Parameter was found - OutVector is valid false Parameter was not found - OutVector is invalid

◆ OnChildAttached()

virtual void UParticleSystemComponent::OnChildAttached ( USceneComponent *  ChildComponent)
overridevirtual

Called after a child scene component is attached to this component.

Note: Do not change the attachment state of the child during this call.

重载 USceneComponent .

◆ OnChildDetached()

virtual void UParticleSystemComponent::OnChildDetached ( USceneComponent *  ChildComponent)
overridevirtual

Called after a child scene component is detached from this component.

Note: Do not change the attachment state of the child during this call.

重载 USceneComponent .

◆ OnEndOfFrameUpdateDuringTick()

virtual void UParticleSystemComponent::OnEndOfFrameUpdateDuringTick ( )
overridevirtual

Allows components to handle an EOF update happening mid tick.

Can be used to block on in-flight async tasks etc. This should ensure the the component's tick is complete so that it's render update is correct.

重载 UActorComponent .

◆ OnUnregister()

virtual void UParticleSystemComponent::OnUnregister ( )
overrideprotectedvirtual

Called when a component is unregistered.

Called after DestroyRenderState_Concurrent and OnDestroyPhysicsState are called.

重载 UPrimitiveComponent .

◆ PostLoad()

virtual void UParticleSystemComponent::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UPrimitiveComponent .

◆ ReportEventBurst()

void UParticleSystemComponent::ReportEventBurst ( const FName  InEventName,
const float  InEmitterTime,
const int32  ParticleCount,
const FVector  InLocation,
const TArray< class UParticleModuleEventSendToGame * > &  InEventData 
)

Record a bursting event.

参数
InEventNameThe name of the event that fired.
InEmitterTimeThe emitter time when the event fired.
InParticleCountThe number of particles spawned in the burst
InLocationThe location of the particle emitter when the event fired.

◆ ReportEventCollision()

void UParticleSystemComponent::ReportEventCollision ( const FName  InEventName,
const float  InEmitterTime,
const FVector  InLocation,
const FVector  InDirection,
const FVector  InVelocity,
const TArray< class UParticleModuleEventSendToGame * > &  InEventData,
const float  InParticleTime,
const FVector  InNormal,
const float  InTime,
const int32  InItem,
const FName  InBoneName,
UPhysicalMaterial *  PhysMat 
)

Record a collision event.

参数
InEventNameThe name of the event that fired.
InEmitterTimeThe emitter time when the event fired.
InLocationThe location of the particle when the event fired.
InDirectionThe direction of the particle when the event fired.
InVelocityThe velocity of the particle when the event fired.
InEventDataGamespecific event data payload
InParticleTimeThe relative life of the particle when the event fired.
InNormalNormal vector of the collision in coordinate system of the returner. Zero=none.
InTimeTime until hit, if line check.
InItemPrimitive data item which was hit, INDEX_NONE=none.
InBoneNameName of bone we hit (for skeletal meshes).

◆ ReportEventDeath()

void UParticleSystemComponent::ReportEventDeath ( const FName  InEventName,
const float  InEmitterTime,
const FVector  InLocation,
const FVector  InVelocity,
const TArray< class UParticleModuleEventSendToGame * > &  InEventData,
const float  InParticleTime 
)

Record a death event.

参数
InEventNameThe name of the event that fired.
InEmitterTimeThe emitter time when the event fired.
InLocationThe location of the particle when the event fired.
InVelocityThe velocity of the particle when the event fired.
InEventDataGamespecific event data payload
InParticleTimeThe relative life of the particle when the event fired.

◆ ReportEventSpawn()

void UParticleSystemComponent::ReportEventSpawn ( const FName  InEventName,
const float  InEmitterTime,
const FVector  InLocation,
const FVector  InVelocity,
const TArray< class UParticleModuleEventSendToGame * > &  InEventData 
)

Event reporting...

Record a spawning event.

参数
InEventNameThe name of the event that fired.
InEmitterTimeThe emitter time when the event fired.
InLocationThe location of the particle when the event fired.
InVelocityThe velocity of the particle when the event fired.
InEventDataGamespecific event data payload

◆ SendRenderTransform_Concurrent()

virtual void UParticleSystemComponent::SendRenderTransform_Concurrent ( )
overrideprotectedvirtual

Called to send a transform update for this component to the rendering thread

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UPrimitiveComponent .

◆ Serialize()

virtual void UParticleSystemComponent::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UPrimitiveComponent .

◆ SetActorParameter()

void UParticleSystemComponent::SetActorParameter ( FName  ParameterName,
class AActor *  Param 
)
override

Set a named actor instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ SetAutoAttachmentParameters()

void UParticleSystemComponent::SetAutoAttachmentParameters ( USceneComponent *  Parent,
FName  SocketName,
EAttachmentRule  LocationRule,
EAttachmentRule  RotationRule,
EAttachmentRule  ScaleRule 
)
override

Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationRule, AutoAttachRotationRule, AutoAttachScaleRule to the specified parameters.

Does not change bAutoManageAttachment; that must be set separately.

参数
ParentComponent to attach to.
SocketNameSocket on Parent to attach to.
LocationRuleOption for how we handle our location when we attach to Parent.
RotationRuleOption for how we handle our rotation when we attach to Parent.
ScaleRuleOption for how we handle our scale when we attach to Parent.
参见
bAutoManageAttachment, AutoAttachParent, AutoAttachSocketName, AutoAttachLocationRule, AutoAttachRotationRule, AutoAttachScaleRule

◆ SetAutoAttachParams()

FORCEINLINE_DEBUGGABLE void UParticleSystemComponent::SetAutoAttachParams ( USceneComponent *  Parent,
FName  SocketName = NAME_None,
EAttachLocation::Type  LocationType = EAttachLocation::KeepRelativeOffset 
)

DEPRECATED: Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationType to the specified parameters.

Does not change bAutoManageAttachment; that must be set separately.

参数
ParentComponent to attach to.
SocketNameSocket on Parent to attach to.
LocationTypeOption for how we handle our location when we attach to Parent.
参见
bAutoManageAttachment, AutoAttachParent, AutoAttachSocketName, AutoAttachLocationType

◆ SetBeamEndPoint()

virtual void UParticleSystemComponent::SetBeamEndPoint ( int32  EmitterIndex,
FVector  NewEndPoint 
)
virtual

Set the beam end point

参数
EmitterIndexThe index of the emitter to set it on
NewEndPointThe value to set it to

◆ SetBeamSourcePoint()

virtual void UParticleSystemComponent::SetBeamSourcePoint ( int32  EmitterIndex,
FVector  NewSourcePoint,
int32  SourceIndex 
)
virtual

Set the beam source point

参数
EmitterIndexThe index of the emitter to set it on
NewSourcePointThe value to set it to
SourceIndexWhich beam within the emitter to set it on

◆ SetBeamSourceStrength()

virtual void UParticleSystemComponent::SetBeamSourceStrength ( int32  EmitterIndex,
float  NewSourceStrength,
int32  SourceIndex 
)
virtual

Set the beam source strength

参数
EmitterIndexThe index of the emitter to set it on
NewSourceStrengthThe value to set it to
SourceIndexWhich beam within the emitter to set it on

◆ SetBeamSourceTangent()

virtual void UParticleSystemComponent::SetBeamSourceTangent ( int32  EmitterIndex,
FVector  NewTangentPoint,
int32  SourceIndex 
)
virtual

Set the beam source tangent

参数
EmitterIndexThe index of the emitter to set it on
NewTangentPointThe value to set it to
SourceIndexWhich beam within the emitter to set it on

◆ SetBeamTargetPoint()

virtual void UParticleSystemComponent::SetBeamTargetPoint ( int32  EmitterIndex,
FVector  NewTargetPoint,
int32  TargetIndex 
)
virtual

Set the beam target point

参数
EmitterIndexThe index of the emitter to set it on
NewTargetPointThe value to set it to
TargetIndexWhich beam within the emitter to set it on

◆ SetBeamTargetStrength()

virtual void UParticleSystemComponent::SetBeamTargetStrength ( int32  EmitterIndex,
float  NewTargetStrength,
int32  TargetIndex 
)
virtual

Set the beam target strength

参数
EmitterIndexThe index of the emitter to set it on
NewTargetStrengthThe value to set it to
TargetIndexWhich beam within the emitter to set it on

◆ SetBeamTargetTangent()

virtual void UParticleSystemComponent::SetBeamTargetTangent ( int32  EmitterIndex,
FVector  NewTangentPoint,
int32  TargetIndex 
)
virtual

Set the beam target tangent

参数
EmitterIndexThe index of the emitter to set it on
NewTangentPointThe value to set it to
TargetIndexWhich beam within the emitter to set it on

◆ SetBoolParameter()

void UParticleSystemComponent::SetBoolParameter ( FName  ParameterName,
bool  Param 
)
override

Set a named float instance parameter on this ParticleSystemComponent.

This is for function parity with the VFX Marshaller. The bool is converted and then set to a float.

◆ SetColorParameter()

void UParticleSystemComponent::SetColorParameter ( FName  ParameterName,
FLinearColor  Param 
)
override

Set a named color instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ SetComponentTickEnabled()

virtual void UParticleSystemComponent::SetComponentTickEnabled ( bool  bEnabled)
overridevirtual

Set this component's tick functions to be enabled or disabled.

Only has an effect if the function is registered

参数
bEnabled- Whether it should be enabled or not

重载 UActorComponent .

◆ SetEmitterEnable()

void UParticleSystemComponent::SetEmitterEnable ( FName  EmitterName,
bool  bNewEnableState 
)
override

Enables/Disables a sub-emitter

参数
EmitterNameThe name of the sub-emitter to set it on
bNewEnableStateThe value to set it to

◆ SetFloatRandParameter()

void UParticleSystemComponent::SetFloatRandParameter ( FName  ParameterName,
float  Param,
float  ParamLow 
)

Set a named random float instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ SetIntParameter()

void UParticleSystemComponent::SetIntParameter ( FName  ParameterName,
int  Param 
)
override

Set a named float instance parameter on this ParticleSystemComponent.

This is for function parity with the VFX Marshaller. The int is converted and then set to a float.

◆ SetMaterial()

virtual void UParticleSystemComponent::SetMaterial ( int32  ElementIndex,
UMaterialInterface *  Material 
)
overridevirtual

Changes the material applied to an element of the mesh.

参数
ElementIndex- The element to access the material of.
返回
the material used by the indexed element of this mesh.

重载 UPrimitiveComponent .

◆ SetMaterialByName()

virtual void UParticleSystemComponent::SetMaterialByName ( FName  MaterialSlotName,
class UMaterialInterface *  Material 
)
overridevirtual

Changes the material applied to an element of the mesh.

参数
MaterialSlotName- The slot name to access the material of.
返回
the material used by the indexed element of this mesh.

重载 UPrimitiveComponent .

◆ SetMaterialParameter()

void UParticleSystemComponent::SetMaterialParameter ( FName  ParameterName,
class UMaterialInterface *  Param 
)

Set a named material instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ SetTrailSourceData()

void UParticleSystemComponent::SetTrailSourceData ( FName  InFirstSocketName,
FName  InSecondSocketName,
ETrailWidthMode  InWidthMode,
float  InWidth 
)

Sets the defining data for all trails in this component.

参数
InFirstSocketNameThe name of the first socket for the trail.
InSecondSocketNameThe name of the second socket for the trail.
InWidthModeHow the width value is applied to the trail.
InWidthThe width of the trail.

◆ SetVectorParameter()

void UParticleSystemComponent::SetVectorParameter ( FName  ParameterName,
FVector  Param 
)
override

Set a named vector instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ SetVectorRandParameter()

void UParticleSystemComponent::SetVectorRandParameter ( FName  ParameterName,
const FVector &  Param,
const FVector &  ParamLow 
)

Set a named random vector instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ SetVectorUnitRandParameter()

void UParticleSystemComponent::SetVectorUnitRandParameter ( FName  ParameterName,
const FVector &  Param,
const FVector &  ParamLow 
)

Set a named random unit vector instance parameter on this ParticleSystemComponent.

Updates the parameter if it already exists, or creates a new entry if not.

◆ TickComponent()

virtual void UParticleSystemComponent::TickComponent ( float  DeltaTime,
enum ELevelTick  TickType,
FActorComponentTickFunction *  ThisTickFunction 
)
overridevirtual

Function called every frame on this ActorComponent.

Override this function to implement custom logic to be executed every frame. Only executes if the component is registered, and also PrimaryComponentTick.bCanEverTick must be set to true.

参数
DeltaTime- The time since the last tick.
TickType- The kind of tick this is, for example, are we paused, or 'simulating' in the editor
ThisTickFunction- Internal tick function struct that caused this to run

重载 UActorComponent .

类成员变量说明

◆ AutoAttachLocationRule

EAttachmentRule UParticleSystemComponent::AutoAttachLocationRule

Options for how we handle our location when we attach to the AutoAttachParent, if bAutoManageAttachment is true.

参见
bAutoManageAttachment, EAttachmentRule

◆ AutoAttachParent

TWeakObjectPtr<USceneComponent> UParticleSystemComponent::AutoAttachParent

Component we automatically attach to when activated, if bAutoManageAttachment is true.

If null during registration, we assign the existing AttachParent and defer attachment until we activate.

参见
bAutoManageAttachment

◆ AutoAttachRotationRule

EAttachmentRule UParticleSystemComponent::AutoAttachRotationRule

Options for how we handle our rotation when we attach to the AutoAttachParent, if bAutoManageAttachment is true.

参见
bAutoManageAttachment, EAttachmentRule

◆ AutoAttachScaleRule

EAttachmentRule UParticleSystemComponent::AutoAttachScaleRule

Options for how we handle our scale when we attach to the AutoAttachParent, if bAutoManageAttachment is true.

参见
bAutoManageAttachment, EAttachmentRule

◆ AutoAttachSocketName

FName UParticleSystemComponent::AutoAttachSocketName

Socket we automatically attach to on the AutoAttachParent, if bAutoManageAttachment is true.

If no auto attach socket name is set during registration, the current attach socket will be assigned to AutoAttachSocketName and used when activated.

参见
bAutoManageAttachment

◆ bAllowRecycling

uint8 UParticleSystemComponent::bAllowRecycling

If true, this Particle System will be available for recycling after it has completed.

Auto-destroyed systems cannot be recycled. Some systems (currently particle trail effects) can recycle components to avoid respawning them to play new effects. This is only an optimization and does not change particle system behavior, aside from not triggering normal component initialization events more than once.

◆ bAutoAttachWeldSimulatedBodies

uint8 UParticleSystemComponent::bAutoAttachWeldSimulatedBodies

Option for how we handle bWeldSimulatedBodies when we attach to the AutoAttachParent, if bAutoManageAttachment is true.

参见
bAutoManageAttachment

◆ bAutoManageAttachment

uint8 UParticleSystemComponent::bAutoManageAttachment

True if we should automatically attach to AutoAttachParent when activated, and detach from our parent when completed.

This overrides any current attachment that may be present at the time of activation (deferring initial attachment until activation, if AutoAttachParent is null). When enabled, detachment occurs regardless of whether AutoAttachParent is assigned, and the relative transform from the time of activation is restored. This also disables attachment on dedicated servers, where we don't actually activate even if bAutoActivate is true.

参见
AutoAttachParent, AutoAttachSocketName, AutoAttachLocationType

◆ bSkipUpdateDynamicDataDuringTick

uint8 UParticleSystemComponent::bSkipUpdateDynamicDataDuringTick

Flag indicating that dynamic updating of render data should NOT occur during Tick.

This is used primarily to allow for warming up and simulated effects to a certain state.

◆ bWasManagingSignificance

uint8 UParticleSystemComponent::bWasManagingSignificance

If this component was previously having it's significance managed by gameplay code.

Allows us to refresh render data when this changes.

◆ InstanceParameters

TArray<struct FParticleSysParam> UParticleSystemComponent::InstanceParameters

Array holding name instance parameters for this ParticleSystemComponent.

Parameters can be used in Cascade using DistributionFloat/VectorParticleParameters.

◆ ReplayClips

TArray<class UParticleSystemReplay*> UParticleSystemComponent::ReplayClips

Array of replay clips for this particle system component.

These are serialized to disk. You really should never add anything to this in the editor. It's exposed so that you can delete clips if you need to, but be careful when doing so!

◆ ReplayState

TEnumAsByte<enum ParticleReplayState> UParticleSystemComponent::ReplayState

Current particle 'replay state'.

This setting controls whether we're currently simulating/rendering particles normally, or whether we should capture or playback particle replay data instead.


该类的文档由以下文件生成: