Skip to content

Cannot emit one shot particles right after it's disabled automatically #58778

@floppyhammer

Description

@floppyhammer

Godot version

v4.0.alpha.custom_build [c9d0523]

System information

Windows 11, Vulkan

Issue description

With one shot enabled, there's a short period of time you cannot enable emitting after particles are disabled automatically.

particles3

It seems this snippet will be hit twice after particles reach their lifetime.

if (p_particles->one_shot) {
p_particles->emitting = false;
}

particles1

The emitting box is unchecked when the first hit happens. And you have to wait until the second hit happens in order to enable emitting again.

Steps to reproduce

See above.

Minimal reproduction project

TestParticles.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Status

    Needs Proposal

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions