luoyikun

导航

统计

12 2017 档案

unity+AssetBundle字节数组加密
摘要:1.加密:对assetbundle的字节数组每位进行与key的异或处理(相同为0,不同为1) using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; 阅读全文

posted @ 2017-12-27 00:30 luoyikun 阅读(21) 评论(0) 推荐(0) 编辑

C#扫描文件夹中中文文件
摘要:using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace CheckChinese { cla 阅读全文

posted @ 2017-12-25 13:25 luoyikun 阅读(4) 评论(0) 推荐(0) 编辑

C#如何以管理员身份运行程序
摘要:一: 在Visual Studio 中–解决方案资源管理器–右键项目名称–属性,找到“安全性”选项 二:勾选“启用ClickOnce安全设置”, 三:这时,在项目下面会多出一个“app.manifest”的文件,选中它,并找到代码段requestedExecutionLevel level=”asI 阅读全文

posted @ 2017-12-23 19:07 luoyikun 阅读(44) 评论(0) 推荐(0) 编辑

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) { 阅读全文

posted @ 2017-12-13 02:26 luoyikun 阅读(6) 评论(0) 推荐(0) 编辑

unity+action使用函数作为传参(匿名函数)
摘要:using UnityEngine; using System.Collections; using System; public class AniScene : MonoBehaviour { // Use this for initialization void Start () { Acti 阅读全文

posted @ 2017-12-10 13:54 luoyikun 阅读(22) 评论(0) 推荐(0) 编辑

unity 给materials赋值
摘要:for (int i = 0; i < trans.transform.GetComponent<Renderer>().materials.Length; i++) { trans.transform.GetComponent<Renderer>().materials[i] = PenMgr.m 阅读全文

posted @ 2017-12-09 21:08 luoyikun 阅读(31) 评论(0) 推荐(0) 编辑

Unity优化技巧
摘要:按照硬件划分分为CPU,GPU,内存&硬盘。 CPU Top10 使用Profile找到CPU占用最靠前的函数,从最高的开始依次分析优化。定位的方法有很多,Unity的Profile,UWA的性能测试工具,比较推荐的是使用XCode,可以抓取一段时间内函数的开销。更品均准确也可以看到更底层。 如过函 阅读全文

posted @ 2017-12-09 16:08 luoyikun 阅读(15) 评论(0) 推荐(0) 编辑

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、运行代码,应 阅读全文

posted @ 2017-12-05 22:26 luoyikun 阅读(4) 评论(0) 推荐(0) 编辑

unity3d scrollview 滚动层dotween移动到指定位置:例如有10项,滚动到第9项
摘要:using UnityEngine; using System.Collections; using UnityEngine.UI; using DG.Tweening; public enum ScrollLayoutType { Grid, Vertical } //只能竖直方向的滚动 publ 阅读全文

posted @ 2017-12-02 01:01 luoyikun 阅读(85) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示