You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 12:10:08 +00:00
# [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))
27 lines
737 B
C#
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 |