unity 特效制作快捷辅助工具
通过选中节点,鼠标中间点击,弹出配置好的快捷粒子,快速创建模块化粒子

上码
(注意effectFastList 集合里面的数据需要自己填充)
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using UnityEditor;
using UnityEngine;
public class EffectHelpQuick
{
[InitializeOnLoadMethod]//这个特性作用:C#编译完成后首先执行该方法
static void Install()
{
EditorApplication.hierarchyWindowItemOnGUI += onhier;
}
static PopupExample popupExample;
static void ShowHierSelectMenu(Rect pos)
{
if (popupExample == null)
{
popupExample = new PopupExample(effectFastList.Count);
}
PopupWindow.Show(pos, popupExample);
return;
}
static void onhier(int guid, Rect selectionRect)
{

这篇博客介绍了一款Unity编辑器插件,通过选中节点并使用鼠标中键,能快速配置并插入预设的粒子效果,显著提升粒子系统的创建效率。它提供了一组预设的粒子模块,方便开发者进行模块化设计。
最低0.47元/天 解锁文章
1778

被折叠的 条评论
为什么被折叠?



