From dc8b3f5637c89544955ea83e582df63b7f69ca1e Mon Sep 17 00:00:00 2001 From: LionelPerrault Date: Thu, 13 Aug 2020 12:45:26 +0000 Subject: [PATCH] 3.0.0-preview.17 # [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) --- CHANGELOG.md | 7 +++++++ Scripts/UIParticle.cs | 6 ++++-- package.json | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2799999..0d6ff9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 0ff16b4..ae629c9 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -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 @@ -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) diff --git a/package.json b/package.json index 1dbe49c..145dba3 100644 --- a/package.json +++ b/package.json @@ -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": {