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

Method UpdateExecuteInEditor

Source/Engine/Particles/ParticleEffect.cpp:486–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484#if USE_EDITOR
485
486void ParticleEffect::UpdateExecuteInEditor()
487{
488 // Auto-play in Editor
489 if (!Editor::IsPlayMode && !_isStopped && IsLooping && PlayOnStart && Editor::Managed->ManagedEditorOptions.EnableParticlesPreview)
490 {
491 _isPlaying = true;
492 Update();
493 }
494 else if (!Editor::IsPlayMode && _isPlaying)
495 {
496 _isPlaying = false;
497 ResetSimulation();
498 }
499}
500
501#endif
502

Callers

nothing calls this directly

Calls 1

UpdateFunction · 0.50

Tested by

no test coverage detected