MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ClearState

Method ClearState

Source/Engine/Particles/ParticlesSimulation.cpp:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void ParticleEmitterInstance::ClearState()
23{
24 Version = 0;
25 Time = 0;
26 SpawnModulesData.Clear();
27 CustomData.Clear();
28 CustomSpawnCount = 0;
29#if COMPILE_WITH_GPU_PARTICLES
30 GPU.DeltaTime = 0.0f;
31 GPU.SpawnCount = 0;
32#endif
33 if (Buffer)
34 {
35 Particles::RecycleParticleBuffer(Buffer);
36 Buffer = nullptr;
37 }
38}
39
40void ParticleEmitterInstance::Sync(ParticleSystemInstance& systemInstance, ParticleSystem* system, int32 emitterIndex)
41{

Callers 5

ResetSimulationMethod · 0.45
SyncMethod · 0.45
OnAssetChangedMethod · 0.45
EndPlayMethod · 0.45
OnActiveInTreeChangedMethod · 0.45

Calls 3

ClearMethod · 0.45
ResizeMethod · 0.45
ReleaseGPUMethod · 0.45

Tested by

no test coverage detected