批量工具协助
SendSi
撸
展开
-
批量工具-设置图片属性
public class OutPullImgAutoSetting : AssetPostprocessor{ /// <summary> /// 导入时自动设置属性--1.copy到文件夹下都会自动设置的 2.拖入到u3d中也会自动设置---,此方法有点无赖,使用时才打开 /// </summary> void OnPreprocessTexture()原创 2017-12-04 21:56:29 · 2174 阅读 · 0 评论 -
协助生成脚本
脚本代码简单生成using System.IO;using UnityEditor;using UnityEngine;public class GenerateCode : EditorWindow{ private static string frontPath; private static string behindPath = ""; [MenuItem(...原创 2018-06-14 00:09:09 · 231 阅读 · 0 评论 -
Editor,NGUI的图集与碎图工具
标题标题using System.Collections;using System.Collections.Generic;using System.IO;using System.Linq;using UnityEditor;using UnityEngine;using UISpriteType = UIBasicSprite.Type;public class Sprite...原创 2018-09-17 00:08:03 · 551 阅读 · 0 评论 -
Editor.NGUI的Inspector面板 点击碎图自动选中资源
DrawAdvancedSpriteField造中 /// <summary> 高亮选中 sprite </summary> private static void HightSelectSprite(UIAtlas pAtlas, string pSpriteName) { if (pAtlas == null ||...原创 2018-09-17 12:56:25 · 224 阅读 · 0 评论 -
NGUI.EventDelegate.Set()方法.点击Inspector直接打开方法体
找到NGUI的EventDelegateEditor脚本.搜索"Notify"这个字符串大概104行吧.//上接点击减号,remove方法 GUILayout.Space(-50); if (GUILayout.Button("o", GUILayout.Width(15), GUILayout.Height(15))) { ...原创 2018-09-22 23:29:23 · 284 阅读 · 0 评论 -
Unity_EditorWindow 时间戳与时间相互转化 辅助工具
using System;using System.Collections;using System.Collections.Generic;using UnityEditor;using UnityEngine;public class TimeLookEditor : EditorWindow{ [MenuItem("Tools/时间戳")] public st...原创 2018-11-25 22:49:29 · 875 阅读 · 0 评论 -
Unity生成简易代码工具
C#代码,可以自己编辑下,只要有规律,可以改成Lua的Panel代码,手写代码易错.特蛋痛的是lua写错编辑器还不报错代码如下using UnityEngine;using UnityEditor;using System.Collections.Generic;using System.Text;using System.IO;public class ZSXGenerateC...原创 2019-08-28 11:39:38 · 960 阅读 · 0 评论