mob-sakai / ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
MIT License
4.32k stars 622 forks source link

ParticleUI component breaks with "Fix any compile errors" #287

Closed APTEM591 closed 9 months ago

APTEM591 commented 9 months ago

Describe the bug

Some (or many, if lucky) of the scripts breaks for no reason at a random moment.

To Reproduce

Steps to reproduce the behavior:

  1. Add a UIParticle object (or copy+paste a component, doesn't matter)
  2. Do some things such as reopen editor, update script or something like that, i can't catch a consistency.
  3. Component breaks like shown on the screenshot and particle system is now default, not as UGUI.

Screenshots

image

Environment (please complete the following)

Additional context No compile errors, but inspector says this: image

mob-sakai commented 9 months ago

@APTEM591 Thank you for your reporting! I would like to know more about this issue.

  1. How did you install ParticleEffectForUGUI?

    • gitURL
    • OpenUPM
    • into Packages
    • into Assets
  2. Open the problematic prefab or scene in a text editor, search for m_AnimatableProperties, and find the m_Script that is above it. Does the GUID for that script match 16f0b0b6d0b7542bfbd20a3e05b04ff1?

  3. Open UIParticle.cs.meta in a text editor and find the GUID. Does the GUID match 16f0b0b6d0b7542bfbd20a3e05b04ff1?

APTEM591 commented 9 months ago

@APTEM591 Thank you for your reporting! I would like to know more about this issue.

  1. How did you install ParticleEffectForUGUI?

    • gitURL
    • OpenUPM
    • into Packages
    • into Assets
  2. Open the problematic prefab or scene in a text editor, search for m_AnimatableProperties, and find the m_Script that is above it. Does the GUID for that script match 16f0b0b6d0b7542bfbd20a3e05b04ff1?
  3. Open UIParticle.cs.meta in a text editor and find the GUID. Does the GUID match 16f0b0b6d0b7542bfbd20a3e05b04ff1?
  1. I installed this plugin with default UPM (into Packages folder).

  2. On the scene the is the only object with this GUID (when the ParticleUIs are >=5), but there is another problem now because I reimported this plugin. If i add a UIParticle to any prefab, it becomes null when i reopen prefab. Also 3 of 4 new UIParticle components on the main scene sending this, which causes domain reload on every exit of play mode: image

    UPD: I managed to reproduce the bug that i mentied earlier by reopening Unity (maybe reopening the scene will be the same).

APTEM591 commented 9 months ago

Forgot to mention, these problems appeared in the latest version of a plugin. They worked absolutely fine except a bug with particles' trails, that's why I updated.

APTEM591 commented 9 months ago

I've found a fix. I just needed to Assets/Reimport All. Weird solution, because reimporting single plugin doesn't help. But it works fine now (At least so far).