Unity Editor 查找替换 Material材质球

2017-10-17 雨辰 Unity3D

using UnityEngine; using UnityEditor; public class ShowMaterialUsePrefab : EditorWindow { private static Material _material; private static bool isChangeMaterial = false; private static Material _changeMaterial; //window菜单下 [MenuItem("Window/查找材质球引用")] private st...

阅读全文>>

标签: Unity3D-Editer

评论(0) 浏览(1104)

Unity Editor 替换 UISprite 引用 Altas

2017-10-17 雨辰 Unity3D

using UnityEngine; using UnityEditor; using System.Collections.Generic; /// <summary> /// 根据鼠标点中的对象批量修改所有精灵 图集,脚本位于Editor文件夹 /// </summary> public class ChangeAltasWindow : EditorWindow { private static bool isChangAltas = false; private static int altCount = 1; ...

阅读全文>>

标签: Unity3D-Editer

评论(0) 浏览(558)

Unity Editor 替换UILabel 引用的Font

2017-10-17 雨辰 Unity3D

using UnityEngine; using UnityEditor; /// <summary> /// 根据鼠标点中的对象批量修改所有UI字体脚本,脚本位于Editor文件夹 /// </summary> public class ChangeFontWindow : EditorWindow { //是否改变当前字体 private static bool isChangFont = false; //是否改变引用字体库 private static bool isChangFontLibrary = f...

阅读全文>>

标签: Unity3D-Editer

评论(0) 浏览(690)

NGUI 导出图集原图

2017-10-10 雨辰 Unity3D

UIAtlasMaker.cs //---------------------------------------------- // NGUI: Next-Gen UI kit // Copyright © 2011-2015 Tasharen Entertainment //---------------------------------------------- using UnityEngine; using UnityEditor; using System.Collections.Generic; using System....

阅读全文>>

标签: Unity3D-Editer Unity3D

评论(2) 浏览(636)

C# 执行bat

2017-9-22 雨辰 DOS

Process proc = null; try { string targetDir = Application.dataPath.Substring(0, Application.dataPath.IndexOf("Assets")); proc = new Process(); proc.StartInfo.FileName = targetDir + "bundle_run_copy.bat"; proc.StartInfo.Arguments =...

阅读全文>>

标签: Unity3D-Editer DOS

评论(0) 浏览(571)

lua 字符转换 utf8

2017-8-22 雨辰 Lua

function utf8(decimal) -- convert unicode code point to utf-8 encoded character string if decimal<128 then return char(decimal) end local charbytes = {} for bytes,vals in ipairs(utf8markers) do if decimal<=vals[1] then for b=bytes+1,2,-1 do local mod = decimal%64 decimal...

阅读全文>>

标签: lua

评论(0) 浏览(546)

lua 数字转换 带千位间隔符

2017-8-22 雨辰 Lua

--获取数字带千位间隔符 function Fishing_NumberFormat(num, deperator) local str1 = "" local str = tostring(num) local strLen = string.len(str) if deperator == nil then deperator = "," end deperator = tostring(deperator) for i = 1, strLen do str1 = strin...

阅读全文>>

标签: lua

评论(0) 浏览(739)

TweenText 支持千位分隔符

2017-8-22 雨辰 Unity3D

using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; /// <summary> /// Tween the widget's depth. /// </summary> [RequireComponent(typeof(UIWidget))] [AddComponentMenu("NGUI/Tween/Tween Text")] public class Tw...

阅读全文>>

标签: Unity3D-优化性能 Unity3D-Editer Unity3D

评论(0) 浏览(618)

HTML5 时钟

2017-8-16 雨辰 遇到的一些问题

阅读全文>>

标签: html5

评论(0) 浏览(469)

Unity 实现王者荣耀 李元芳飘带效果

2017-8-9 雨辰 Unity3D

#region 脚本说明 /*---------------------------------------------------------------- // 脚本作用:实现Line拖尾跟随摆动效果 //----------------------------------------------------------------*/ #endregion using UnityEngine; using System.Collections; public class LineRebdererAni : MonoBehaviour { //Renderer...

阅读全文>>

标签: Unity3D-优化性能 Unity3D-Shader Unity3D

评论(0) 浏览(1315)

朱文华 joyimp|@2011-2019 京ICP备16030765号