- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 NGUI图集分解 切割
UIAtlasMaker.csUnity3d通用工具类之NGUI图集分解 - 走看看有些图片边界一些alpha通道没有分解出来 在上面基础上修改了下.static void ExportTexturePNGFromAtlas(string folderPath, UIAtlas atlas) { List<UISpriteData> exitSpritesList = atlas.spriteList; Texture2D atlasText...
2022-05-05 09:23:47
4963
原创 BAT批量添加注释 -文件夹子文件夹下文件
rem 添加内容set ADD_TIPS=--@xy-2021for /R %%a in (*.lua) do ( echo %%a TIMEOUT /T 1 echo %ADD_TIPS%>>%%~dpamytmp.txt type %%a>>%%~dpamytmp.txt del %%a ren %%~dpamytmp.txt %%~na.lua)pause复制保存为.bat文件,注意文件编码此处以lua文件为例子,请根据具体需求..
2021-02-20 10:24:02
328
原创 2D 圆形UI摆放
local totalItem = 12 --数量 local angle = 360/totalItem --角度 local radius = 200 --半径 local curAngle = 0 --当前角度 local circlePointX = 0 local circlePointY = 0 for i=1, totalItem ...
2021-01-05 16:41:36
135
原创 正则表达式
1.字符,查看百科 如:https://baike.baidu.com/item/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/1700215?fr=aladdin2.验证和常用表达式 如:https://tool.oschina.net/regex/#
2021-01-05 09:28:05
81
转载 openGL图片占用内存计算
图像占用内存的公式是:numBytes = width * height * bitsPerPixel / 8 OpenGL ES 纹理的宽和高都要是2次幂数, 以刚才的例子来说, 假如 start.png 本身是 480x320, 但在载入内存後, 它其实会被变成一张 512x512 的纹理, 而start.png 则由 101x131 变成 128x256, 默认情况下面,当你在
2015-09-07 11:20:35
2031
转载 lua 可变参数
(1)function print(...) for i,v in ipairs(arg) do printResult = printResult .. tostring(v) .. "\t" end printResult = printResult .. "\n"end(2)哑元 空变量
2015-08-19 20:57:29
325
转载 for_each算法函数
(转)妙用for_each算法函数for_each函数原形templateclass _InIt, class _Fn1> inline _Fn1 for_each(_InIt _First, _InIt _Last, _Fn1 _Func) { // perform function for each element for (;
2015-08-11 15:37:50
290
转载 中文字符的整数形式大于127
-- 计算字符串宽度 localstr = "Jimmy: 你好,世界!"localfontSize = 20locallenInByte = #strlocalwidth = 0 fori=1,lenInByte do localcurByte = string.byte(str, i)
2015-08-10 21:11:42
666
24点题目和答案-Question_List.plist
2021-09-17
WinMerge-2.13.6-Setup.rar
2020-03-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人