随笔分类 -  C#

C#
摘要:拼接路径: string destination = Path.Combine(Application.dataPath, AssetBundleConfig.AssetsFolderName); 获取路径下文件: string[] files = Directory.GetFiles(dirPat 阅读全文
posted @ 2020-02-13 14:30 GamesClient 阅读(501) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;using UnityEditor.ProjectWindowCallback;using System.IO;using UnityEditor;public class CreateLua { [MenuIte 阅读全文
posted @ 2020-02-09 14:46 GamesClient 阅读(380) 评论(0) 推荐(0)
摘要:private Vertor3[] m_verts; private Vertor2[] m_UV; private Vector3[] meshIndicte; private bool m_change = false; private meshFilter m_meshFilter; priv 阅读全文
posted @ 2018-08-02 14:45 GamesClient 阅读(257) 评论(0) 推荐(0)
摘要:Finger Touch 是一种处理手势识别的插件,在游戏开发中经常会用到,这里我先简单介绍一下Finger Touch(如有错误 欢迎指正) : #region Event // Fired when a finger begins touching the screen (LeanFinger 阅读全文
posted @ 2018-07-22 17:39 GamesClient 阅读(912) 评论(0) 推荐(0)
摘要:补位 string str = "100"; str.PadLeft(5,'0') 输出:00100 str.PadRight(5, '0') 输出:10000 阅读全文
posted @ 2018-04-02 16:12 GamesClient 阅读(200) 评论(0) 推荐(0)
摘要:string filePath =@"E:/Randy0528/中文目录/JustTest.rar";更改路径字符串的扩展名。System.IO.Path.ChangeExtension(filePath, "txt");E:/Randy0528/中文目录/JustTest.txt返回指定路径字符串 阅读全文
posted @ 2018-04-02 16:09 GamesClient 阅读(136) 评论(0) 推荐(0)