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

Special effects display abnormal when upgrading from 3.x to 4.x #277

Closed
HFX-93 opened this issue Nov 5, 2023 · 11 comments
Closed

Special effects display abnormal when upgrading from 3.x to 4.x #277

HFX-93 opened this issue Nov 5, 2023 · 11 comments
Assignees
Labels
migration package upgrading question Further information is requested released

Comments

@HFX-93
Copy link

HFX-93 commented Nov 5, 2023

Special effects display abnormal when upgrading from 3.x to 4.x
https://github.com/HFX-93/ParticleEffectForUGUIDemo3.3.5/archive/refs/heads/main.zip
https://github.com/HFX-93/ParticleEffectForUGUIDemo4.2.1/archive/refs/heads/master.zip
3.3.5image
4.2.1image

@HFX-93 HFX-93 added the question Further information is requested label Nov 5, 2023
@HFX-93
Copy link
Author

HFX-93 commented Nov 5, 2023

@mob-sakai I have created the project link and you can test it @

@mob-sakai
Copy link
Owner

Thank you for your reporting!

@mob-sakai mob-sakai added the migration package upgrading label Nov 5, 2023
@HFX-93
Copy link
Author

HFX-93 commented Nov 7, 2023

@mob-sakai Hello. How's it going

@mob-sakai
Copy link
Owner

@HFX-93
Currently in progress.
Try this.
dev.zip

@HFX-93
Copy link
Author

HFX-93 commented Nov 7, 2023

@mob-sakai That's great! After using the AutoScalingMode UIParticle mode, a lot of special effects have turned to normal, but I also don't understand, the inside of the AutoScalingMode. What's the use of the Transform model, for the UI, as if this pattern will not need

@HFX-93
Copy link
Author

HFX-93 commented Nov 7, 2023

@HFX-93 Currently in progress. Try this. dev.zip
@mob-sakai
I found an issue where I had to switch to Transform mode and then switch back to UIParticle mode for the effects to play properly. Download my 4.2.2-dev project for more details
https://github.com/HFX-93/4.2.2-dev/archive/refs/heads/master.zip
See the video for details
image

@mob-sakai
Copy link
Owner

mob-sakai commented Nov 7, 2023

:)

What's the use of the Transform model, for the UI, as if this pattern will not need

AutoScalingMode.Transform is for compatibility purposes.
Old options (ignoreCanvasScaler, autoScaling) adjust Transform.localScale.
AutoScalingMode.UIParticle internally adjusts UIParticle.scale.

I found an issue where I had to switch to Transform mode and then switch back to UIParticle mode for the effects to play properly.

Umm, The prefab's local scale is 0.

@mob-sakai
Copy link
Owner

Added to the FAQ: #270

If Transform.localScale contains 0, rendering is skipped.

@HFX-93
Copy link
Author

HFX-93 commented Nov 8, 2023

@mob-sakai When will the new version be updated

@mob-sakai
Copy link
Owner

ASAP

github-actions bot pushed a commit that referenced this issue Nov 8, 2023
# [4.3.0](4.2.2...4.3.0) (2023-11-08)

### Features

* added 'autoScalingMode (None, Transform.localScale, UIParticle.scale)' instead of 'autoScaling' ([107f901](107f901))
* reset transform.localScale on upgrading v3.x to v4.x ([c710787](c710787)), closes [#277](#277)
Copy link

github-actions bot commented Nov 8, 2023

🎉 This issue has been resolved in version 4.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration package upgrading question Further information is requested released
Projects
None yet
Development

No branches or pull requests

2 participants