Skip to content

Commit

Permalink
3.0.0-preview.8
Browse files Browse the repository at this point in the history
# [3.0.0-preview.8](mob-sakai/ParticleEffectForUGUI@v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03)

### Bug Fixes

* abnormal Mesh Bounds with Particle Trails ([518a749](mob-sakai/ParticleEffectForUGUI@518a749)), closes [#61](mob-sakai/ParticleEffectForUGUI#61)
* multiple UIParticleOverlayCamera in scene ([3f09395](mob-sakai/ParticleEffectForUGUI@3f09395)), closes [#73](mob-sakai/ParticleEffectForUGUI#73)
  • Loading branch information
LionelPerrault committed Mar 3, 2020
1 parent 34a1eb6 commit 6736aa9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# [3.0.0-preview.8](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03)


### Bug Fixes

* abnormal Mesh Bounds with Particle Trails ([518a749](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/518a7497105a114a0f6b1782df0c35ba0aecfab2)), closes [#61](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/61)
* multiple UIParticleOverlayCamera in scene ([3f09395](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/3f093958b3353463d6c5bd29ef3338203d4e41d7)), closes [#73](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/73)

# [3.0.0-preview.7](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.6...v3.0.0-preview.7) (2020-03-02)


Expand Down
8 changes: 5 additions & 3 deletions Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,13 @@ void UpdateMesh()
}
Profiler.EndSample();

// Editor crashes when mesh is set to null when ParticleSystem.RenderMode=Mesh
// #69: Editor crashes when mesh is set to null when ParticleSystem.RenderMode=Mesh
if (_renderer.renderMode == ParticleSystemRenderMode.Mesh && !_renderer.mesh)
{
return;
}

// #61: When ParticleSystem.RenderMode=None, an error occurs
if (_renderer.renderMode == ParticleSystemRenderMode.None)
return;

Profiler.BeginSample("Make Matrix");
ParticleSystem.MainModule main = m_ParticleSystem.main;
Expand Down
9 changes: 9 additions & 0 deletions Scripts/UIParticleOverlayCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ void Awake()
}
}

/// <summary>
/// This function is called when the MonoBehaviour will be destroyed.
/// </summary>
void OnEnable()
{
gameObject.hideFlags = HideFlags.HideAndDontSave;
gameObject.tag = "EditorOnly";
}

/// <summary>
/// This function is called when the MonoBehaviour will be destroyed.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.coffee.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.",
"version": "3.0.0-preview.7",
"version": "3.0.0-preview.8",
"unity": "2018.2",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 6736aa9

Please sign in to comment.