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.
|
overridevirtual |
Activates the SceneComponent, should be overridden by native child classes.
| bReset | - Whether the activation should happen even if ShouldActivate returns false. |
重载 UActorComponent .
|
overridevirtual |
Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location
| InWorldOffset | Offset vector the actor shifted by |
| bWorldShift | Whether this call is part of whole world shifting |
重载 USceneComponent .
|
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 .
| void UParticleSystemComponent::BeginTrails | ( | FName | InFirstSocketName, |
| FName | InSecondSocketName, | ||
| ETrailWidthMode | InWidthMode, | ||
| float | InWidth | ||
| ) |
Begins all trail emitters in this component.
| InFirstSocketName | The name of the first socket for the trail. |
| InSecondSocketName | The name of the second socket for the trail. |
| InWidthMode | How the width value is applied to the trail. |
| InWidth | The width of the trail. |
|
overridevirtual |
Calculate the bounds of the component.
Default behavior is a bounding box/sphere of zero size.
重载 USceneComponent .
| void UParticleSystemComponent::ClearParameter | ( | FName | ParameterName, |
| enum EParticleSysParamType | ParameterType = EParticleSysParamType(0) |
||
| ) |
clears the specified parameter, returning it to the default value set in the template
| ParameterName | name of parameter to remove |
| ParameterType | type of parameter to remove; if omitted or PSPT_None is specified, all parameters with the given name are removed |
| void UParticleSystemComponent::ConditionalCacheViewRelevanceFlags | ( | class UParticleSystem * | NewTemplate = NULL | ) |
Cache the view-relevance for each emitter at each LOD level if needed.
| NewTemplate | The UParticleSystem* to use as the template. If NULL, use the currently set template. |
|
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. |
|
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
| EmitterInstance | Emitter instance this replay is playing on |
| EmitterReplayData | Incoming replay data of any time, cannot be NULL |
| bSelected | true if the particle system is currently selected |
| InFeatureLevel | The relevant shader feature level |
|
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. |
|
overrideprotectedvirtual |
Used to create any rendering thread information for this component
重载 UPrimitiveComponent .
|
overridevirtual |
Creates a proxy to represent the primitive to the scene manager in the rendering thread.
重载 UPrimitiveComponent .
|
overrideprotectedvirtual |
Used to shut down any rendering thread structure for this component
重载 UPrimitiveComponent .
|
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.
| UParticleSystemReplay * UParticleSystemComponent::FindReplayClipForIDNumber | ( | const int32 | InClipIDNumber | ) |
Finds the replay clip of the specified ID number
|
overridevirtual |
Called to finish destroying the object.
After UObject::FinishDestroy is called, the object's memory should no longer be accessed.
重载 UPrimitiveComponent .
| void UParticleSystemComponent::GenerateParticleEvent | ( | const FName | InEventName, |
| const float | InEmitterTime, | ||
| const FVector | InLocation, | ||
| const FVector | InDirection, | ||
| const FVector | InVelocity | ||
| ) |
Record a kismet event.
| InEventName | The name of the event that fired. |
| InEmitterTime | The emitter time when the event fired. |
| InLocation | The location of the particle when the event fired. |
| InVelocity | The velocity of the particle when the event fired. |
| InNormal | Normal vector of the collision in coordinate system of the returner. Zero=none. |
|
virtual |
Retrieve the Actor parameter value for the given name.
| InName | Name of the parameter |
| OutActor | The value of the parameter found |
|
virtual |
Retrieve the Vector parameter value for the given name...also looks for colors and floats and returns those
| InName | Name of the parameter |
| OutVector | The value of the parameter found |
|
virtual |
Get the beam end point
| EmitterIndex | The index of the emitter to get the value of |
|
virtual |
Get the beam source point
| EmitterIndex | The index of the emitter to get |
| SourceIndex | Which beam within the emitter to get |
| OutSourcePoint | Value of source point |
|
virtual |
Get the beam source strength
| EmitterIndex | The index of the emitter to get |
| SourceIndex | Which beam within the emitter to get |
| OutSourceStrength | Value of source tangent |
|
virtual |
Get the beam source tangent
| EmitterIndex | The index of the emitter to get |
| SourceIndex | Which beam within the emitter to get |
| OutTangentPoint | Value of source tangent |
|
virtual |
Get the beam target point
| EmitterIndex | The index of the emitter to get |
| TargetIndex | Which beam within the emitter to get |
| OutTargetPoint | Value of target point |
|
virtual |
Get the beam target strength
| EmitterIndex | The index of the emitter to get |
| TargetIndex | Which beam within the emitter to get |
| OutTargetStrength | Value of target tangent |
|
virtual |
Get the beam target tangent
| EmitterIndex | The index of the emitter to get |
| TargetIndex | Which beam within the emitter to get |
| OutTangentPoint | Value of target tangent |
|
overridevirtual |
Returns BodyInstance of the component.
| BoneName | Used to get body associated with specific bone. NAME_None automatically gets the root most body |
| bGetWelded | If the component has been welded to another component and bGetWelded is true we return the single welded BodyInstance that is used in the simulation |
重载 UPrimitiveComponent .
|
virtual |
Retrieve the Color parameter value for the given name.
| InName | Name of the parameter |
| OutColor | The value of the parameter found |
| 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
|
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 .
|
virtual |
Retrieve the Float parameter value for the given name.
| InName | Name of the parameter |
| OutFloat | The value of the parameter found |
|
overridevirtual |
Returns the material used by the element at the specified index
| ElementIndex | - The element to access the material of. |
重载 UPrimitiveComponent .
|
virtual |
Retrieve the Material parameter value for the given name.
| InName | Name of the parameter |
| OutMaterial | The value of the parameter found |
|
virtual |
Returns a named material.
If this named material is not found, returns NULL.
|
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.
|
virtual |
Fills the passed array with all trail emitters associated with a particular object.
| OutTrailEmitters | The array to fill with pointers to the trail emitters. |
| InOwner | The 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(). |
| bSetOwner | If true, all trail emitters will be set as owned by InOwner. |
|
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).
| CumulativeResourceSize | Struct used to count up the cumulative size of the resource as to be displayed to artists/LDs in the Editor. |
重载 UPrimitiveComponent .
|
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 .
|
overridevirtual |
Retrieves the materials used in this component
| OutMaterials | The list of used materials. |
重载 UPrimitiveComponent .
|
virtual |
Retrieve the Vector parameter value for the given name.
| InName | Name of the parameter |
| OutVector | The value of the parameter found |
|
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 .
|
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 .
|
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 .
|
overrideprotectedvirtual |
Called when a component is unregistered.
Called after DestroyRenderState_Concurrent and OnDestroyPhysicsState are called.
重载 UPrimitiveComponent .
|
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 .
| void UParticleSystemComponent::ReportEventBurst | ( | const FName | InEventName, |
| const float | InEmitterTime, | ||
| const int32 | ParticleCount, | ||
| const FVector | InLocation, | ||
| const TArray< class UParticleModuleEventSendToGame * > & | InEventData | ||
| ) |
Record a bursting event.
| InEventName | The name of the event that fired. |
| InEmitterTime | The emitter time when the event fired. |
| InParticleCount | The number of particles spawned in the burst |
| InLocation | The location of the particle emitter when the event fired. |
| 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.
| InEventName | The name of the event that fired. |
| InEmitterTime | The emitter time when the event fired. |
| InLocation | The location of the particle when the event fired. |
| InDirection | The direction of the particle when the event fired. |
| InVelocity | The velocity of the particle when the event fired. |
| InEventData | Gamespecific event data payload |
| InParticleTime | The relative life of the particle when the event fired. |
| InNormal | Normal vector of the collision in coordinate system of the returner. Zero=none. |
| InTime | Time until hit, if line check. |
| InItem | Primitive data item which was hit, INDEX_NONE=none. |
| InBoneName | Name of bone we hit (for skeletal meshes). |
| 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.
| InEventName | The name of the event that fired. |
| InEmitterTime | The emitter time when the event fired. |
| InLocation | The location of the particle when the event fired. |
| InVelocity | The velocity of the particle when the event fired. |
| InEventData | Gamespecific event data payload |
| InParticleTime | The relative life of the particle when the event fired. |
| 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.
| InEventName | The name of the event that fired. |
| InEmitterTime | The emitter time when the event fired. |
| InLocation | The location of the particle when the event fired. |
| InVelocity | The velocity of the particle when the event fired. |
| InEventData | Gamespecific event data payload |
|
overrideprotectedvirtual |
Called to send a transform update for this component to the rendering thread
重载 UPrimitiveComponent .
|
overridevirtual |
Handles reading, writing, and reference collecting using FArchive.
This implementation handles all FProperty serialization, but can be overridden for native variables.
重载 UPrimitiveComponent .
|
override |
Set a named actor instance parameter on this ParticleSystemComponent.
Updates the parameter if it already exists, or creates a new entry if not.
|
override |
Set AutoAttachParent, AutoAttachSocketName, AutoAttachLocationRule, AutoAttachRotationRule, AutoAttachScaleRule to the specified parameters.
Does not change bAutoManageAttachment; that must be set separately.
| Parent | Component to attach to. |
| SocketName | Socket on Parent to attach to. |
| LocationRule | Option for how we handle our location when we attach to Parent. |
| RotationRule | Option for how we handle our rotation when we attach to Parent. |
| ScaleRule | Option for how we handle our scale when we attach to Parent. |
| 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.
| Parent | Component to attach to. |
| SocketName | Socket on Parent to attach to. |
| LocationType | Option for how we handle our location when we attach to Parent. |
|
virtual |
Set the beam end point
| EmitterIndex | The index of the emitter to set it on |
| NewEndPoint | The value to set it to |
|
virtual |
Set the beam source point
| EmitterIndex | The index of the emitter to set it on |
| NewSourcePoint | The value to set it to |
| SourceIndex | Which beam within the emitter to set it on |
|
virtual |
Set the beam source strength
| EmitterIndex | The index of the emitter to set it on |
| NewSourceStrength | The value to set it to |
| SourceIndex | Which beam within the emitter to set it on |
|
virtual |
Set the beam source tangent
| EmitterIndex | The index of the emitter to set it on |
| NewTangentPoint | The value to set it to |
| SourceIndex | Which beam within the emitter to set it on |
|
virtual |
Set the beam target point
| EmitterIndex | The index of the emitter to set it on |
| NewTargetPoint | The value to set it to |
| TargetIndex | Which beam within the emitter to set it on |
|
virtual |
Set the beam target strength
| EmitterIndex | The index of the emitter to set it on |
| NewTargetStrength | The value to set it to |
| TargetIndex | Which beam within the emitter to set it on |
|
virtual |
Set the beam target tangent
| EmitterIndex | The index of the emitter to set it on |
| NewTangentPoint | The value to set it to |
| TargetIndex | Which beam within the emitter to set it on |
|
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.
|
override |
Set a named color instance parameter on this ParticleSystemComponent.
Updates the parameter if it already exists, or creates a new entry if not.
|
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 .
|
override |
Enables/Disables a sub-emitter
| EmitterName | The name of the sub-emitter to set it on |
| bNewEnableState | The value to set it to |
| 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.
|
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.
|
overridevirtual |
Changes the material applied to an element of the mesh.
| ElementIndex | - The element to access the material of. |
重载 UPrimitiveComponent .
|
overridevirtual |
Changes the material applied to an element of the mesh.
| MaterialSlotName | - The slot name to access the material of. |
重载 UPrimitiveComponent .
| 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.
| void UParticleSystemComponent::SetTrailSourceData | ( | FName | InFirstSocketName, |
| FName | InSecondSocketName, | ||
| ETrailWidthMode | InWidthMode, | ||
| float | InWidth | ||
| ) |
Sets the defining data for all trails in this component.
| InFirstSocketName | The name of the first socket for the trail. |
| InSecondSocketName | The name of the second socket for the trail. |
| InWidthMode | How the width value is applied to the trail. |
| InWidth | The width of the trail. |
Set a named vector instance parameter on this ParticleSystemComponent.
Updates the parameter if it already exists, or creates a new entry if not.
| 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.
| 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.
|
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 .
| EAttachmentRule UParticleSystemComponent::AutoAttachLocationRule |
Options for how we handle our location when we attach to the AutoAttachParent, if bAutoManageAttachment is true.
| 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.
| EAttachmentRule UParticleSystemComponent::AutoAttachRotationRule |
Options for how we handle our rotation when we attach to the AutoAttachParent, if bAutoManageAttachment is true.
| EAttachmentRule UParticleSystemComponent::AutoAttachScaleRule |
Options for how we handle our scale when we attach to the AutoAttachParent, if bAutoManageAttachment is true.
| 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.
| 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.
| uint8 UParticleSystemComponent::bAutoAttachWeldSimulatedBodies |
Option for how we handle bWeldSimulatedBodies when we attach to the AutoAttachParent, if bAutoManageAttachment is true.
| 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.
| 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.
| 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.
| TArray<struct FParticleSysParam> UParticleSystemComponent::InstanceParameters |
Array holding name instance parameters for this ParticleSystemComponent.
Parameters can be used in Cascade using DistributionFloat/VectorParticleParameters.
| 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!
| 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.