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:
As they are set:
How the group is set by scripting:
How the replicators are set by scripting:
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: As they are set: How the group is set by scripting: How the replicators are set by scripting: