| 484 | #if USE_EDITOR |
| 485 | |
| 486 | void 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 |