Files
ParticleEffectForUGUI/Scripts/Editor/OpenSesamePortable.cs
semantic-release-bot 47edd82542 3.0.0-preview.3
# [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](0a4374099d))
* workaround for [#70](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/70) ([4bbcc33](4bbcc334ab))
2020-02-17 03:22:13 +00:00

20 lines
578 B
C#

#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("<b>Request to recompile: {0} ({1})</b>", assemblyName, asmdefPath);
AssetDatabase.ImportAsset(asmdefPath);
}
}
}
#endif