Skip to content

Commit

Permalink
3.0.0-preview.17
Browse files Browse the repository at this point in the history
# [3.0.0-preview.17](mob-sakai/ParticleEffectForUGUI@v3.0.0-preview.16...v3.0.0-preview.17) (2020-08-13)

### Bug Fixes

* The type or namespace name 'U2D' does not exist in the namespace 'UnityEditor.Experimental' in Unity 2019.3 or later ([930199e](mob-sakai/ParticleEffectForUGUI@930199e)), closes [#82](mob-sakai/ParticleEffectForUGUI#82)
  • Loading branch information
LionelPerrault committed Aug 13, 2020
1 parent f9867e2 commit dc8b3f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [3.0.0-preview.17](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.16...v3.0.0-preview.17) (2020-08-13)


### Bug Fixes

* The type or namespace name 'U2D' does not exist in the namespace 'UnityEditor.Experimental' in Unity 2019.3 or later ([930199e](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/930199e5e42920825b27d5bf3e2b2a4bda77fa14)), closes [#82](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/82)

# [3.0.0-preview.16](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.15...v3.0.0-preview.16) (2020-08-12)


Expand Down
6 changes: 4 additions & 2 deletions Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using UnityEngine.UI;
using ShaderPropertyType = Coffee.UIExtensions.UIParticle.AnimatableProperty.ShaderPropertyType;
#if UNITY_EDITOR
using System;
using System.Reflection;

#endif

namespace Coffee.UIExtensions
Expand Down Expand Up @@ -643,7 +643,9 @@ void UpdateAnimatableMaterialProperties()
}

#if UNITY_EDITOR
private static MethodInfo miGetActiveAtlasTexture = typeof(UnityEditor.Experimental.U2D.SpriteEditorExtension)
private static Type tSpriteEditorExtension = Type.GetType("UnityEditor.Experimental.U2D.SpriteEditorExtension, UnityEditor")
?? Type.GetType("UnityEditor.U2D.SpriteEditorExtension, UnityEditor");
private static MethodInfo miGetActiveAtlasTexture = tSpriteEditorExtension
.GetMethod("GetActiveAtlasTexture", BindingFlags.Static | BindingFlags.NonPublic);

static Texture2D GetActualTexture(Sprite sprite)
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.16",
"version": "3.0.0-preview.17",
"unity": "2018.2",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit dc8b3f5

Please sign in to comment.