diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8742ac6..cb7cb94 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,11 @@
+# [3.0.0-preview.3](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.2...v3.0.0-preview.3) (2020-02-17)
+
+
+### Bug Fixes
+
+* remove unnecessary scripts ([0a43740](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/0a4374099dc3151e7f1a3a24a6ce6c39a968e163))
+* workaround for [#70](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/70) ([4bbcc33](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/4bbcc334abb7cd6db2897fad0bda219d5ea73530))
+
# [3.0.0-preview.2](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.1...v3.0.0-preview.2) (2020-02-13)
diff --git a/NewBehaviourScript.cs b/NewBehaviourScript.cs
deleted file mode 100644
index de84d75..0000000
--- a/NewBehaviourScript.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class NewBehaviourScript : MonoBehaviour {
-
- // Use this for initialization
- void Start () {
-
- }
-
- // Update is called once per frame
- void Update () {
-
- }
-}
diff --git a/Scripts/Editor/OpenSesamePortable.cs b/Scripts/Editor/OpenSesamePortable.cs
new file mode 100644
index 0000000..ff15a62
--- /dev/null
+++ b/Scripts/Editor/OpenSesamePortable.cs
@@ -0,0 +1,19 @@
+#if !OPEN_SESAME && UNITY_EDITOR
+using UnityEditor;
+using UnityEditor.Compilation;
+
+namespace Coffee.OpenSesame
+{
+ [InitializeOnLoad]
+ internal class Portable
+ {
+ static Portable()
+ {
+ var assemblyName = typeof(Portable).Assembly.GetName().Name;
+ var asmdefPath = CompilationPipeline.GetAssemblyDefinitionFilePathFromAssemblyName(assemblyName);
+ UnityEngine.Debug.LogFormat("Request to recompile: {0} ({1})", assemblyName, asmdefPath);
+ AssetDatabase.ImportAsset(asmdefPath);
+ }
+ }
+}
+#endif
diff --git a/NewBehaviourScript.cs.meta b/Scripts/Editor/OpenSesamePortable.cs.meta
similarity index 83%
rename from NewBehaviourScript.cs.meta
rename to Scripts/Editor/OpenSesamePortable.cs.meta
index b782813..0cb5303 100644
--- a/NewBehaviourScript.cs.meta
+++ b/Scripts/Editor/OpenSesamePortable.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 7ea8014cf19934959b4d5b1192703a1c
+guid: 1945fcd655ed94bfd80e8f918453c865
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Scripts/Editor/UIParticleEditor.cs b/Scripts/Editor/UIParticleEditor.cs
index 11de4ff..8a2abd9 100644
--- a/Scripts/Editor/UIParticleEditor.cs
+++ b/Scripts/Editor/UIParticleEditor.cs
@@ -1,4 +1,5 @@
-using UnityEditor;
+#if OPEN_SESAME
+using UnityEditor;
using UnityEditor.UI;
using UnityEngine;
using System.Collections.Generic;
@@ -278,3 +279,4 @@ namespace Coffee.UIExtensions
}
}
}
+#endif
diff --git a/Scripts/Editor/UIParticleMenu.cs b/Scripts/Editor/UIParticleMenu.cs
index 541ed66..f46d6ca 100644
--- a/Scripts/Editor/UIParticleMenu.cs
+++ b/Scripts/Editor/UIParticleMenu.cs
@@ -1,4 +1,5 @@
-#if !UNITY_2019_1_OR_NEWER
+#if OPEN_SESAME
+#if !UNITY_2019_1_OR_NEWER
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@@ -22,4 +23,5 @@ namespace Coffee.UIExtensions
}
}
}
+#endif
#endif
\ No newline at end of file
diff --git a/package.json b/package.json
index 1a214e4..8b7c2bc 100644
--- a/package.json
+++ b/package.json
@@ -2,17 +2,14 @@
"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.2",
+ "version": "3.0.0-preview.3",
"unity": "2018.2",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/mob-sakai/ParticleEffectForUGUI.git"
},
- "src": "Assets/Coffee/UIExtensions/UIParticle",
"author": "mob-sakai (https://github.com/mob-sakai)",
- "editorOnly": false,
- "upmSupport": true,
"dependencies": {},
"samples": [
{