随笔分类 -  C# .NET

摘要:1 using System; 2 using UnityEngine; 3 using System.Reflection; 4 public enum ExampleEnum 5 { 6 Value1, 7 Value2 8 } 9 class Program :MonoBehaviour 10 阅读全文
posted @ 2024-08-22 15:12 zerozabuu 阅读(23) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 获取JSON字符串中所有指定KEY的值 /// </summary> public static List<string> GetAllJsonValue(String jsonString, String key) { List<string> lst = ne 阅读全文
posted @ 2023-10-26 15:46 zerozabuu 阅读(768) 评论(0) 推荐(0) 编辑
摘要:在项目中(运行时),已经有个功能是导出文件到本地磁盘,使用的方法是常见的DllImport("Comdlg32.dll")并进行封装。详情可参考:https://github.com/gkngkc/UnityStandaloneFileBrowser 后来,又出现了个需求,是在编辑器的编辑态中,增加 阅读全文
posted @ 2021-01-18 18:12 zerozabuu 阅读(958) 评论(0) 推荐(0) 编辑
摘要:百度上搜了半天,竟然没有C#使用LitJson格式化输出的例子,全都是Newtonsoft.Json的,最后在litjson的官网找到了方法。 给大家分享一下: https://litjson.net/docs/quickstart/configuring-the-librarys-behavior 阅读全文
posted @ 2020-05-26 17:39 zerozabuu 阅读(1528) 评论(0) 推荐(0) 编辑

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