Git Product home page Git Product logo

Comments (14)

mob-sakai avatar mob-sakai commented on May 20, 2024 1

@ZhihaoJun
umm...
It is not reproduced on my environment.

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

from particleeffectforugui.

ZhihaoJun avatar ZhihaoJun commented on May 20, 2024 1

Sorry for the late reply, but I'm glad the bug has been fixed.

from particleeffectforugui.

ZhihaoJun avatar ZhihaoJun commented on May 20, 2024 1

Unfortunately, I encountered this issue again using the 4.4.0 version.
This time I was building Android version of my game.

However, I managed to solve it by putting entire UIParticle project in the Assets folder rather than in the Packages like mentioned above.

I think this issue is related to AssetBundle building process because my UI prefab is loading from an AssetBundle.
Everything is fine in the test project that is not using AssetBundle.

UIParticle version: 4.4.0
Unity version: 2021.3.28f1
IL2CPP backend

Optimization settings as below
image

from particleeffectforugui.

tienassassin avatar tienassassin commented on May 20, 2024 1

Yeah, I upgraded Unity editor from 2022.3.7f1 to 2022.3.11f1
I just tried removing the UIParticle component, deleting the [generated] object then adding the UIParticle component again, everything works perfectly, it's a miracle
Thanks for your dedicated help, sir @mob-sakai

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 20, 2024

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

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

repos

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 20, 2024

@mattluard

The issue is not reproduced on my environment...
Do you think adding the following code to UIParticle.cs would solve the issue?

[assembly:UnityEngine.Scripting.Preserve]

from particleeffectforugui.

ZhihaoJun avatar ZhihaoJun commented on May 20, 2024

Same problem here. Built standalone on windows platform with il2cpp backend. I got the error log when running:
image

My best guess is this macro that causes the bug since this is the only macro I found wrap a SerializeField of UIParticle.cs:
image

UIParticle version: 4.1.7
Unity version: 2021.3.28f1

from particleeffectforugui.

github-actions avatar github-actions commented on May 20, 2024

🎉 This issue has been resolved in version 4.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from particleeffectforugui.

tienassassin avatar tienassassin commented on May 20, 2024

Hi sir @mob-sakai , looks like this issue hasn't been fixed yet.
UIParticle ver: 4.2.2
Unity ver: 2022.3.11f1
Please check. Thanks!
image

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 20, 2024

@ZhihaoJun
Thank you for your reporting!

@tienassassin
As a workaround, try the way that @ZhihaoJun said.

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 20, 2024

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

repos

from particleeffectforugui.

tienassassin avatar tienassassin commented on May 20, 2024

Hmm if I create an empty scene (same project as the one having the problem), then use UI Particle here, everything works fine... 😟

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 20, 2024
  • Has the project undergone a Unity version upgrade in the past?
  • Are the assets assets that are loaded additionally, such as in AssetBundles? Also, were these assets built with an older version of Unity or UIParticle?
  • If the assets are re-serialized, will the issue be resolved?
    AssetDatabase.ForceReserializeAssets()

I think that the root cause is the different serialization layout, meaning that the data structure differs between build time and load time.

from particleeffectforugui.

mob-sakai avatar mob-sakai commented on May 20, 2024

If the same issue arises, please re-open this issue.

from particleeffectforugui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.