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

浙公网安备 33010602011771号