Files
ParticleEffectForUGUI/Scripts/Editor/UIParticleMenu.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

27 lines
737 B
C#

#if OPEN_SESAME
#if !UNITY_2019_1_OR_NEWER
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace Coffee.UIExtensions
{
public class UIParticleMenu
{
[MenuItem("Assets/Samples/Import UIParticle Sample")]
static void ImportSample()
{
const string src = "Packages/com.coffee.ui-particle/Samples~/Demo";
const string dst = "Assets/Samples/UI Particle/3.0.0/Demo";
if (FileUtil.PathExists(dst))
FileUtil.DeleteFileOrDirectory(dst);
FileUtil.CopyDirectoryRecursive(src, dst);
AssetDatabase.ImportAsset(dst, ImportAssetOptions.ImportRecursive);
}
}
}
#endif
#endif