You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
3.0.0-preview.5
# [3.0.0-preview.5](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.4...v3.0.0-preview.5) (2020-02-21)
### Bug Fixes
* particles not visible if scale.z is 0 ([35718e0](35718e099a)), closes [#64](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/64)
This commit is contained in:
@@ -333,6 +333,7 @@ namespace Coffee.UIExtensions
|
||||
List<UIParticle> _children = new List<UIParticle>();
|
||||
Matrix4x4 scaleaMatrix = default(Matrix4x4);
|
||||
Vector3 _oldPos;
|
||||
static readonly Vector3 minimumVec3 = new Vector3(0.0000001f, 0.0000001f, 0.0000001f);
|
||||
static ParticleSystem.Particle[] s_Particles = new ParticleSystem.Particle[4096];
|
||||
|
||||
/// <summary>
|
||||
@@ -398,7 +399,7 @@ namespace Coffee.UIExtensions
|
||||
matrix =
|
||||
scaleaMatrix
|
||||
* Matrix4x4.Rotate(rectTransform.rotation).inverse
|
||||
* Matrix4x4.Scale(rectTransform.lossyScale).inverse;
|
||||
* Matrix4x4.Scale(rectTransform.lossyScale + minimumVec3).inverse;
|
||||
break;
|
||||
case ParticleSystemSimulationSpace.World:
|
||||
matrix =
|
||||
|
||||
Reference in New Issue
Block a user