- 博客(9)
- 资源 (276)
- 收藏
- 关注
原创 unity+AssetBundle字节数组加密
1.加密:对assetbundle的字节数组每位进行与key的异或处理(相同为0,不同为1)using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;namespace AbEncypt{ class Program {
2017-12-27 00:30:10 2189
原创 C#扫描文件夹中中文文件
using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Text.RegularExpressions;namespace CheckChinese{ class Program { static void Main(string
2017-12-25 13:25:42 928
转载 C#如何以管理员身份运行程序
一: 在Visual Studio 中–解决方案资源管理器–右键项目名称–属性,找到“安全性”选项 二:勾选“启用ClickOnce安全设置”, 三:这时,在项目下面会多出一个“app.manifest”的文件,选中它,并找到代码段requestedExecutionLevel level=”asInvoker” uiAccess=”false” ,将其改为:requestedExecu
2017-12-23 19:07:45 728
原创 c# 遍历字典改key
void test(int cur, int cnt) { List<string> list = new List<string>(m_pptData.dicPpt.Keys); foreach (string key in list) { if (int.Parse(key) > cur) {
2017-12-13 02:26:50 3887
原创 unity+action使用函数作为传参(匿名函数)
using UnityEngine;using System.Collections;using System;public class AniScene : MonoBehaviour { // Use this for initialization void Start () { ActionTest((param,param1) => {
2017-12-10 13:54:11 6290
原创 unity 给materials赋值
for (int i = 0; i < trans.transform.GetComponent<Renderer>().materials.Length; i++) { trans.transform.GetComponent<Renderer>().materials[i] = PenMgr.mInstance.m_alphaMat; }这
2017-12-09 21:08:42 2869
转载 Unity优化技巧
按照硬件划分分为CPU,GPU,内存&硬盘。 CPU Top10使用Profile找到CPU占用最靠前的函数,从最高的开始依次分析优化。定位的方法有很多,Unity的Profile,UWA的性能测试工具,比较推荐的是使用XCode,可以抓取一段时间内函数的开销。更品均准确也可以看到更底层。如过函数比较复杂可以使用BeginSample/EndSample拆分,我在项目里通过添加条件编译进行了封装
2017-12-09 16:08:33 504
原创 Texture ‘XXX‘ is not readable, the memory can not be accessed form scripts, You can make the texture
解决方法: 1、选中图片:Inspector窗口下第一个选项,Texture Type 改成 Advanced; 2、选中Read/Write Enabled。 3、选中下方Override for Standalone,Format这图片ARGB 32bit 4、点击Apply。 5、运行代码,应该没问题了。
2017-12-05 22:26:43 2163
原创 unity3d scrollview 滚动层dotween移动到指定位置:例如有10项,滚动到第9项
using UnityEngine;using System.Collections;using UnityEngine.UI;using DG.Tweening;public enum ScrollLayoutType{ Grid, Vertical}//只能竖直方向的滚动public class ScrollToItem : MonoBehaviour {
2017-12-02 01:01:00 4659 1
批量复制文件源码
2015-12-15
cocos3.x惯性滑动源码
2015-09-19
box2d 中文教程
2015-09-12
cocos2dx消消乐源码
2015-09-12
Cocos2dx 2048源码
2015-09-12
android版2048源码
2015-09-12
NGUI Next-Gen UI 3.9.0
2015-09-12
cocos3.x不规则按钮
2015-09-12
植物大战僵尸Load场景源码
2015-09-04
cocos2dx植物大战僵尸apk
2015-09-04
NGUI屏幕摇杆
2015-08-26
cocos2dx触摸钢琴源码
2015-08-20
cocos2dx3.0打地鼠源码
2015-08-20
MFC批量重命名文件源码
2015-08-18
unity3d使用win32api,实现最小化,托盘运行,开机自启动,浏览文件框,隐藏标题栏
2023-01-04
unity3d百度语音转文字,文字转语音
2018-07-26
ugui 虚拟摇杆
2018-04-13
unity 资源热更新 uri下载
2018-02-25
IOS Native unity 插件
2017-10-19
DOTween+Pro+v0.9.290 unity 插件
2017-10-19
Vectrosity 5.4.2 unity 画线插件
2017-10-19
SimpleSQL unity 数据库插件
2017-10-19
litjson dll
2017-01-11
斗地主规则
2017-01-09
UGUI Scrollrect滚动优化:无限循环利用
2016-06-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人