Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIParticle Random Toggle is getting enable randomly #327

Open
polylob opened this issue Aug 15, 2024 · 2 comments
Open

UIParticle Random Toggle is getting enable randomly #327

polylob opened this issue Aug 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working need more info

Comments

@polylob
Copy link

polylob commented Aug 15, 2024

I have a group of five particles, each with a different color. Each UIParticle component is configured as a primary simulator, and the group is programmatically set by iterating through a list where they are assigned. However, in play mode, the random toggle button activates seemingly out of nowhere, and all UIParticles set as replicators start rendering random particles continuously.

Here’s what happens: All UI elements are placed within a scroll view. When these elements move outside the viewport (become invisible), I deactivate them. When they come back into view, I reactivate them. It is at this point that the particles consistently appear as different ones.

Probably happening when the GroupId is set via scripting.

Group:
image
As they are set:
image
How the group is set by scripting:
image
How the replicators are set by scripting:
image

  • Version: 4.9.1
  • Platform: Editor (Windows)
  • Unity version: 2022.3.10f1
@polylob polylob added the bug Something isn't working label Aug 15, 2024
@mob-sakai
Copy link
Owner

Thank you for your reporting!

@mob-sakai
Copy link
Owner

Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info
Projects
None yet
Development

No branches or pull requests

2 participants