luoyikun

导航

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页

2017年12月23日 #

C#如何以管理员身份运行程序

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

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

2017年12月13日 #

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 阅读(8) 评论(0) 推荐(0)

2017年12月10日 #

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 阅读(25) 评论(0) 推荐(0)

2017年12月9日 #

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 阅读(40) 评论(0) 推荐(0)

Unity优化技巧

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

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

2017年12月5日 #

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 阅读(9) 评论(0) 推荐(0)

2017年12月2日 #

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 阅读(94) 评论(0) 推荐(0)

2017年11月28日 #

unity 背景根据按钮数量变化

摘要: 实现背景根据按钮数量进行变大变小 阅读全文

posted @ 2017-11-28 14:24 luoyikun 阅读(10) 评论(0) 推荐(0)

unity + WebClient显示下载速度,当前下载量,下载总量

摘要: 在这资源更新的进度条显示时 using (WebClient client = new WebClient()) { sw.Start(); client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(Progr 阅读全文

posted @ 2017-11-28 01:38 luoyikun 阅读(40) 评论(0) 推荐(0)

unity+Loom实现多线程(Thread)和主线程(MainThread)交互

摘要: 最近在做资源更新时,需要显示现在的进度调。我在Unity中开启了一个线程来做下载任务,然后实时刷新下载进度。然后Unity报了一个错误。 get_isActiveAndEnabled can only be called from the main thread. 意思是Unity中的组件只能运行在 阅读全文

posted @ 2017-11-28 01:23 luoyikun 阅读(60) 评论(0) 推荐(0)

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页