release v1.3.2

pull/33/head
mob-sakai 2018-12-29 21:38:04 +09:00
commit 38da308f36
4 changed files with 19 additions and 6 deletions

8
Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs Normal file → Executable file
View File

@ -59,9 +59,7 @@ namespace Coffee.UIExtensions
Profiler.BeginSample ("Check material");
var mat = m_IsTrail
? _renderer.trailMaterial
: Application.isPlaying
? _renderer.material
: _renderer.sharedMaterial;
: _renderer.sharedMaterial;
if (mat && mat.HasProperty (s_IdMainTex))
{
tex = mat.mainTexture;
@ -143,6 +141,10 @@ namespace Coffee.UIExtensions
s_TempRelatables.Clear ();
_renderer = cachedParticleSystem ? cachedParticleSystem.GetComponent<ParticleSystemRenderer> () : null;
if (_renderer && Application.isPlaying)
{
_renderer.enabled = false;
}
// Create objects.
_mesh = new Mesh ();

View File

@ -1,5 +1,17 @@
# Changelog
## [v1.3.2](https://github.com/mob-sakai/ParticleEffectForUGUI/tree/v1.3.2) (2018-12-29)
[Full Changelog](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v1.3.1...v1.3.2)
**Implemented enhancements:**
- Use shared material during play mode [\#29](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/29)
**Fixed bugs:**
- Particle not showing on Android, while on editor it works [\#31](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/31)
## [v1.3.1](https://github.com/mob-sakai/ParticleEffectForUGUI/tree/v1.3.1) (2018-12-24)
[Full Changelog](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v1.3.0...v1.3.1)
@ -18,7 +30,6 @@ With Gizmo you can control the scaled Shape.
**Fixed bugs:**
- Assertion failed on expression: 'IsNormalized\(normal, 0.001f\)' [\#22](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/22)
- In overlay, particle size is too small [\#23](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/23)
- UIParticle.Scale does not affect the gizmo of shape module [\#21](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/21)

View File

@ -52,7 +52,7 @@ Compares this "Baking mesh" approach with the conventional approach:
* No heavy allocation every frame
* All ParticleSystem.ScalingModes and all Canvas.RenderModes are supported. They look almost the same in all modes.
![](https://user-images.githubusercontent.com/12690315/49866926-6c22f500-fe4c-11e8-8393-d5a546e9e2d3.gif)
* Scaled gizmo
* Scaled gizmo
![](https://user-images.githubusercontent.com/12690315/50343861-f31e4e80-056b-11e9-8f60-8bd0a8ff7adb.gif)

View File

@ -1,6 +1,6 @@
{
"name": "ParticleEffectForUGUI",
"version": "1.3.1",
"version": "1.3.2",
"repository": {
"type": "git",
"url": "git+https://github.com/mob-sakai/ParticleEffectForUGUI.git"