You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a GameObject's transform parent is changed to another canvas with different CanvasScaler properties, ParticleSystems using Trail component have visual issue, such as trail being played at an offset position. We believe this is caused due to OnTransformParentChanged being overridden without its base method.
To Reproduce
Create 2 Canvases with CanvasScaler UIScaleMode = ScaleWithScreenSize and with different ReferenceResolution values
Create a GameObject under Canvas1 with following components: UIParticle, ParticleSystem with a proper trail component
Change GameObjects parent to Canvas2 without changing local scale values during runtime.
Trail will be played with an offset
To fix during runtime simply disable and enable GameObject
Expected behavior
OnTransformParentChanged should be called to properly cache right canvas
Environment (please complete the following information):
Describe the bug
When a GameObject's transform parent is changed to another canvas with different CanvasScaler properties, ParticleSystems using Trail component have visual issue, such as trail being played at an offset position. We believe this is caused due to OnTransformParentChanged being overridden without its base method.
To Reproduce
Expected behavior
OnTransformParentChanged should be called to properly cache right canvas
Environment (please complete the following information):
Additional context
Removing OnTransformParentChanged overridden method on UIParticle.cs fixed the issue for us.
The text was updated successfully, but these errors were encountered: