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

Multiple UIParticleOverlayCamera in scene. #73

Closed
as3mbus opened this issue Mar 3, 2020 · 6 comments
Closed

Multiple UIParticleOverlayCamera in scene. #73

as3mbus opened this issue Mar 3, 2020 · 6 comments
Assignees
Labels
bug Something isn't working released on @preview

Comments

@as3mbus
Copy link

as3mbus commented Mar 3, 2020

Describe what help do you need
Is there any limitation on using multiple ui particle on scene with overlay camera canvas ?
there are warning that pops out that gets me worried if i use stuff wrong.

Additional context
would love a help to either fix / ignore this warning according to the previous question answer.

thank you

@as3mbus as3mbus added the question Further information is requested label Mar 3, 2020
@mob-sakai
Copy link
Owner

mob-sakai commented Mar 3, 2020

@as3mbus
Probably, UIParticleOverlayCamera exists in multiple scenes in your project.

I will use GameObject.hideFlag to fix this issue.

@mob-sakai mob-sakai added bug Something isn't working and removed question Further information is requested labels Mar 3, 2020
@as3mbus
Copy link
Author

as3mbus commented Mar 3, 2020

ah yes. i used some RuntimeInitializeOnLoadMethod to always load setup scene before starting actual scene.

so most likely scenario is overlay camera might not be fully initialized before changing scene to setup scene, and when going back to actual scene where particle ui reside it'll try to setup init itself one more time. (idk if this actually happen, but reading the code lead me to such assumption)

mob-sakai added a commit that referenced this issue Mar 3, 2020
github-actions bot pushed a commit that referenced this issue Mar 3, 2020
# [3.0.0-preview.8](v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03)

### Bug Fixes

* abnormal Mesh Bounds with Particle Trails ([518a749](518a749)), closes [#61](#61)
* multiple UIParticleOverlayCamera in scene ([3f09395](3f09395)), closes [#73](#73)
github-actions bot pushed a commit that referenced this issue Mar 3, 2020
# [3.0.0-preview.8](v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03)

### Bug Fixes

* abnormal Mesh Bounds with Particle Trails ([518a749](518a749)), closes [#61](#61)
* multiple UIParticleOverlayCamera in scene ([3f09395](3f09395)), closes [#73](#73)
@mob-sakai
Copy link
Owner

🎉 This issue has been resolved in version 3.0.0-preview.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@as3mbus
Copy link
Author

as3mbus commented Mar 3, 2020

somewhat solved it with workaround by moving overlay camera into my setup scene.

i believe warning is somewhat not necessary for this case as you will always destroy the camera if one already exist.

@mob-sakai
Copy link
Owner

Please try to use v3.0.0-preview.8 :)

@as3mbus
Copy link
Author

as3mbus commented Mar 3, 2020

tested, and it worked fine thanks for your fast response 👍

@as3mbus as3mbus closed this as completed Mar 3, 2020
LionelPerrault added a commit to LionelPerrault/Unity-Particle that referenced this issue Jul 25, 2023
# [3.0.0-preview.8](mob-sakai/ParticleEffectForUGUI@v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03)

### Bug Fixes

* abnormal Mesh Bounds with Particle Trails ([518a749](mob-sakai/ParticleEffectForUGUI@518a749)), closes [#61](mob-sakai/ParticleEffectForUGUI#61)
* multiple UIParticleOverlayCamera in scene ([3f09395](mob-sakai/ParticleEffectForUGUI@3f09395)), closes [#73](mob-sakai/ParticleEffectForUGUI#73)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released on @preview
Projects
None yet
Development

No branches or pull requests

2 participants