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:
semantic-release-bot
2020-02-21 11:42:30 +00:00
parent 94b1c71a32
commit 628a8c6bf0
4 changed files with 60 additions and 21 deletions

View File

@@ -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 =