You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-15 12:40:08 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41e895a2db | ||
|
|
17ce81eb0e | ||
|
|
ba3b80db7a | ||
|
|
2a1f3345ba | ||
|
|
c0aa89bd6f |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,3 +1,18 @@
|
|||||||
|
## [3.3.3](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/3.3.2...3.3.3) (2021-02-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* particle trails draw in wrong transform ([17ce81e](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/17ce81eb0eccb103c21fa553183df97429cf5c6f)), closes [#145](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/145)
|
||||||
|
|
||||||
|
## [3.3.2](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/3.3.1...3.3.2) (2021-02-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* _cachedPosition defaults to localPosition ([c0aa89b](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/c0aa89bd6f7847723a4702b6ca70fa202e8a8304)), closes [#121](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/121)
|
||||||
|
* submeshes can't over 8 ([2a1f334](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/2a1f3345bacdecf38e8890781a181a1392224e35)), closes [#122](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/122)
|
||||||
|
|
||||||
## [3.3.1](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/3.3.0...3.3.1) (2021-02-01)
|
## [3.3.1](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/3.3.0...3.3.1) (2021-02-01)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -204,19 +204,6 @@ namespace Coffee.UIExtensions
|
|||||||
DestroyUIParticle(current);
|
DestroyUIParticle(current);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
current.GetComponentsInParent(true, s_TempParents);
|
|
||||||
if (FixButton(1 < s_TempParents.Count, "This UIParticle component should be removed. The parent UIParticle exists."))
|
|
||||||
{
|
|
||||||
DestroyUIParticle(current);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
current.GetComponentsInChildren(true, s_TempChildren);
|
|
||||||
if (FixButton(1 < s_TempChildren.Count, "The children UIParticle component should be removed."))
|
|
||||||
{
|
|
||||||
s_TempChildren.ForEach(child => DestroyUIParticle(child, true));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DestroyUIParticle(UIParticle p, bool ignoreCurrent = false)
|
void DestroyUIParticle(UIParticle p, bool ignoreCurrent = false)
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ namespace Coffee.UIExtensions
|
|||||||
{
|
{
|
||||||
if (!root) return;
|
if (!root) return;
|
||||||
root.GetComponentsInChildren(particles);
|
root.GetComponentsInChildren(particles);
|
||||||
|
particles.RemoveAll(x => x.GetComponentInParent<UIParticle>() != this);
|
||||||
|
|
||||||
foreach (var ps in particles)
|
foreach (var ps in particles)
|
||||||
{
|
{
|
||||||
@@ -387,7 +388,7 @@ namespace Coffee.UIExtensions
|
|||||||
#if !SERIALIZE_FIELD_MASKABLE
|
#if !SERIALIZE_FIELD_MASKABLE
|
||||||
maskable = m_Maskable;
|
maskable = m_Maskable;
|
||||||
#endif
|
#endif
|
||||||
_cachedPosition = transform.localPosition;
|
_cachedPosition = transform.position;
|
||||||
activeMeshIndices.Clear();
|
activeMeshIndices.Clear();
|
||||||
|
|
||||||
UIParticleUpdater.Register(this);
|
UIParticleUpdater.Register(this);
|
||||||
@@ -447,14 +448,6 @@ namespace Coffee.UIExtensions
|
|||||||
enabled = false;
|
enabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (enabled && transform.parent && transform.parent.GetComponentInParent<UIParticle>())
|
|
||||||
{
|
|
||||||
UnityEngine.Debug.LogWarningFormat(this, "[UIParticle] The UIParticle component should be removed: {0}\nReason: The parent UIParticle exists.", name);
|
|
||||||
gameObject.hideFlags = HideFlags.None;
|
|
||||||
_shouldBeRemoved = true;
|
|
||||||
enabled = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this || particles.AnyFast()) return;
|
if (!this || particles.AnyFast()) return;
|
||||||
|
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ namespace Coffee.UIExtensions
|
|||||||
var hash = currentPs.GetMaterialHash(true);
|
var hash = currentPs.GetMaterialHash(true);
|
||||||
if (hash != 0)
|
if (hash != 0)
|
||||||
{
|
{
|
||||||
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local
|
matrix = currentPs.main.simulationSpace == ParticleSystemSimulationSpace.Local && currentPs.trails.worldSpace
|
||||||
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
|
? matrix * Matrix4x4.Translate(-currentPs.transform.position)
|
||||||
: matrix;
|
: matrix;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "com.coffee.ui-particle",
|
"name": "com.coffee.ui-particle",
|
||||||
"displayName": "UI Particle",
|
"displayName": "UI Particle",
|
||||||
"description": "This plugin provide a component to render particle effect for uGUI.\nThe particle rendering is maskable and sortable, without Camera, RenderTexture or Canvas.",
|
"description": "This plugin provide a component to render particle effect for uGUI.\nThe particle rendering is maskable and sortable, without Camera, RenderTexture or Canvas.",
|
||||||
"version": "3.3.1",
|
"version": "3.3.3",
|
||||||
"unity": "2018.2",
|
"unity": "2018.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user