engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
UParticleSystem类 参考

A ParticleSystem is a complete particle effect that contains any number of ParticleEmitters. 更多...

#include <ParticleSystem.h>

继承自 UFXSystemAsset .

Public 成员函数

ENGINE_API void BuildEmitters ()
 Builds all emitters in the particle system.
 
virtual bool CalculateMaxActiveParticleCounts ()
 CalculateMaxActiveParticleCounts Determine the maximum active particles that could occur with each emitter. 更多...
 
virtual bool CanBeClusterRoot () const override
 Called after load to determine if the object can be a cluster root 更多...
 
FORCEINLINE bool CanTickInAnyThread ()
 return true if this psys can tick in any thread
 
ENGINE_API void ComputeCanTickInAnyThread ()
 Decide if this psys can tick in any thread, and set bIsElligibleForAsyncTick
 
bool ContainsEmitterType (UClass *TypeData)
 Returns true if this system contains an emitter of the pasesd type. 更多...
 
bool DoesAnyEmitterHaveMotionBlur (int32 LODLevelIndex) const
 Checks if any of the emitters have motion blur at a specific lod level. 更多...
 
virtual void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const override
 Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects 更多...
 
virtual enum ParticleSystemLODMethod GetCurrentLODMethod ()
 Return the currently set LOD method

 
virtual float GetLODDistance (int32 LODLevelIndex)
 Return the distance for the given LOD level 更多...
 
virtual int32 GetLODLevelCount ()
 Return the number of LOD levels for this particle system 更多...
 
ENGINE_API void GetParametersUtilized (TArray< TArray< FString > > &ParticleSysParamList, TArray< TArray< FString > > &ParticleParameterList)
 Retrieve the parameters associated with this particle system. 更多...
 
bool HasGPUEmitter () const
 Returns true if this system contains any GPU emitters.
 
bool IsLooping () const
 Returns true if the particle system is looping (contains one or more looping emitters)
 
virtual bool IsPostLoadThreadSafe () const override
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PreSave (const class ITargetPlatform *TargetPlatform) override
 Presave function. 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SetCurrentLODMethod (ParticleSystemLODMethod InMethod)
 Set the LOD method 更多...
 
ENGINE_API void SetDelay (float InDelay)
 Set the time to delay spawning the particle system
 
virtual bool SetLODDistance (int32 LODLevelIndex, float InDistance)
 Set the distance for the given LOD index 更多...
 
ENGINE_API void SetupLODValidity ()
 Editor helper function for setting the LOD validity flags used in Cascade.
 
ENGINE_API void SetupSoloing ()
 Setup the soloing information... Obliterates all current soloing.
 
ENGINE_API bool ToggleSoloing (class UParticleEmitter *InEmitter)
 Toggle the bIsSoloing flag on the given emitter. 更多...
 
ENGINE_API bool TurnOffSoloing ()
 Turn soloing off completely - on every emitter 更多...
 

Public 属性

uint8 bRegenerateLODDuplicate: 1
 Internal value that tracks the regenerate LOD levels preference. 更多...
 
uint8 bUseDelayRange: 1
 If true, select the emitter delay from the range [DelayLow..Delay]
 
FBox CustomOcclusionBounds
 The occlusion bounds to use if OcclusionBoundsMethod is set to EPSOBM_CustomBounds
 
float InsignificanceDelay
 Time delay between all emitters becoming insignificant and the systems insignificant reaction.
 
EParticleSystemInsignificanceReaction InsignificantReaction
 The reaction this system takes when all emitters are insignificant.
 
TEnumAsByte< enum ParticleSystemLODMethod > LODMethod
 The method of LOD level determination to utilize for this particle system PARTICLESYSTEMLODMETHOD_Automatic - Automatically set the LOD level, checking every LODDistanceCheckTime seconds. 更多...
 
FVector MacroUVPosition
 Local space position that UVs generated with the ParticleMacroUV material node will be centered on.
 
EParticleSignificanceLevel MaxSignificanceLevel
 The maximum level of significance for emitters in this system. 更多...
 
TArray< FNamedEmitterMaterial > NamedMaterialSlots
 Array of named material slots for use by emitters of this system. 更多...
 
TEnumAsByte< enum EParticleSystemOcclusionBoundsMethod > OcclusionBoundsMethod
 Which occlusion bounds method to use for this particle system. 更多...
 

详细描述

A ParticleSystem is a complete particle effect that contains any number of ParticleEmitters.

By allowing multiple emitters in a system, the designer can create elaborate particle effects that are held in a single system. Once created using Cascade, a ParticleSystem can then be inserted into a level or created in script.

成员函数说明

◆ CalculateMaxActiveParticleCounts()

virtual bool UParticleSystem::CalculateMaxActiveParticleCounts ( )
virtual

CalculateMaxActiveParticleCounts Determine the maximum active particles that could occur with each emitter.

This is to avoid reallocation during the life of the emitter.

返回
true if the numbers were determined for each emitter false if not be determined

◆ CanBeClusterRoot()

virtual bool UParticleSystem::CanBeClusterRoot ( ) const
overridevirtual

Called after load to determine if the object can be a cluster root

返回
true if this object can be a cluster root

重载 UObjectBaseUtility .

◆ ContainsEmitterType()

bool UParticleSystem::ContainsEmitterType ( UClass *  TypeData)

Returns true if this system contains an emitter of the pasesd type.

@ param TypeData - The emitter type to check for. Must be a child class of UParticleModuleTypeDataBase

◆ DoesAnyEmitterHaveMotionBlur()

bool UParticleSystem::DoesAnyEmitterHaveMotionBlur ( int32  LODLevelIndex) const

Checks if any of the emitters have motion blur at a specific lod level.

参数
LODLevelIndexThe LOD level to check motion blur availability
返回
true If any emitter has motion blur false None of the emitters have motion blur

◆ GetAssetRegistryTags()

virtual void UParticleSystem::GetAssetRegistryTags ( TArray< FAssetRegistryTag > &  OutTags) const
overridevirtual

Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects

参数
OutTagsA list of key-value pairs associated with this object and their types

重载 UObject .

◆ GetLODDistance()

virtual float UParticleSystem::GetLODDistance ( int32  LODLevelIndex)
virtual

Return the distance for the given LOD level

参数
LODLevelIndexThe LOD level that the distance is being retrieved for
返回
-1.0f If the index is invalid Distance The distance set for the LOD level

◆ GetLODLevelCount()

virtual int32 UParticleSystem::GetLODLevelCount ( )
virtual

Return the number of LOD levels for this particle system

返回
The number of LOD levels in the particle system

◆ GetParametersUtilized()

ENGINE_API void UParticleSystem::GetParametersUtilized ( TArray< TArray< FString > > &  ParticleSysParamList,
TArray< TArray< FString > > &  ParticleParameterList 
)

Retrieve the parameters associated with this particle system.

参数
ParticleSysParamListThe list of FParticleSysParams used in the system
ParticleParameterListThe list of ParticleParameter distributions used in the system

◆ IsPostLoadThreadSafe()

virtual bool UParticleSystem::IsPostLoadThreadSafe ( ) const
overridevirtual

Called during async load to determine if PostLoad can be called on the loading thread.

返回
true if this object's PostLoad is thread safe

重载 UObject .

◆ PostLoad()

virtual void UParticleSystem::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.

重载 UObject .

◆ PreSave()

virtual void UParticleSystem::PreSave ( const class ITargetPlatform *  TargetPlatform)
overridevirtual

Presave function.

Gets called once before an object gets serialized for saving. This function is necessary for save time computation as Serialize gets called three times per object from within SavePackage.

警告
: Objects created from within PreSave will NOT have PreSave called on them!!!

重载 UObject .

◆ Serialize()

virtual void UParticleSystem::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.

重载 UObject .

◆ SetCurrentLODMethod()

virtual void UParticleSystem::SetCurrentLODMethod ( ParticleSystemLODMethod  InMethod)
virtual

Set the LOD method

参数
InMethodThe desired method

◆ SetLODDistance()

virtual bool UParticleSystem::SetLODDistance ( int32  LODLevelIndex,
float  InDistance 
)
virtual

Set the distance for the given LOD index

参数
LODLevelIndexThe LOD level to set the distance of
InDistanceThe distance to set
返回
true If successful false Invalid LODLevelIndex

◆ ToggleSoloing()

ENGINE_API bool UParticleSystem::ToggleSoloing ( class UParticleEmitter *  InEmitter)

Toggle the bIsSoloing flag on the given emitter.

参数
InEmitterThe emitter to toggle.
返回
bool true if ANY emitters are set to soloing, false if none are.

◆ TurnOffSoloing()

ENGINE_API bool UParticleSystem::TurnOffSoloing ( )

Turn soloing off completely - on every emitter

返回
bool true if successful, false if not.

类成员变量说明

◆ bRegenerateLODDuplicate

uint8 UParticleSystem::bRegenerateLODDuplicate

Internal value that tracks the regenerate LOD levels preference.

If true, when autoregenerating LOD levels in code, the low level will be a duplicate of the high.

◆ LODMethod

TEnumAsByte<enum ParticleSystemLODMethod> UParticleSystem::LODMethod

The method of LOD level determination to utilize for this particle system PARTICLESYSTEMLODMETHOD_Automatic - Automatically set the LOD level, checking every LODDistanceCheckTime seconds.

PARTICLESYSTEMLODMETHOD_DirectSet - LOD level is directly set by the game code. PARTICLESYSTEMLODMETHOD_ActivateAutomatic - LOD level is determined at Activation time, then left alone unless directly set by game code.

◆ MaxSignificanceLevel

EParticleSignificanceLevel UParticleSystem::MaxSignificanceLevel

The maximum level of significance for emitters in this system.

Any emitters with a higher significance will be capped at this significance level.

◆ NamedMaterialSlots

TArray<FNamedEmitterMaterial> UParticleSystem::NamedMaterialSlots

Array of named material slots for use by emitters of this system.

Emitters can use these instead of their own materials by providing the name to the NamedMaterialOverrides property of their required module. These materials can be overridden using CreateNamedDynamicMaterialInstance() on a ParticleSystemComponent.

◆ OcclusionBoundsMethod

TEnumAsByte<enum EParticleSystemOcclusionBoundsMethod> UParticleSystem::OcclusionBoundsMethod

Which occlusion bounds method to use for this particle system.

EPSOBM_None - Don't determine occlusion for this system. EPSOBM_ParticleBounds - Use the bounds of the component when determining occlusion.


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