mob-sakai / mob-sakai/ParticleEffectForUGUI

UIParticle Random Toggle is getting enable randomly

Open
#327 2 comments 0 reactions 1 assignee View on GitHub

@mob-sakai is already working on this.

Since Aug 15, 2024.

bug need more info
Dominant language
C#
Stars
6k
Forks
762
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.