随笔分类 - 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
阅读全文
摘要:/// <summary> /// 获取JSON字符串中所有指定KEY的值 /// </summary> public static List<string> GetAllJsonValue(String jsonString, String key) { List<string> lst = ne
阅读全文
摘要:在项目中(运行时),已经有个功能是导出文件到本地磁盘,使用的方法是常见的DllImport("Comdlg32.dll")并进行封装。详情可参考:https://github.com/gkngkc/UnityStandaloneFileBrowser 后来,又出现了个需求,是在编辑器的编辑态中,增加
阅读全文
摘要:百度上搜了半天,竟然没有C#使用LitJson格式化输出的例子,全都是Newtonsoft.Json的,最后在litjson的官网找到了方法。 给大家分享一下: https://litjson.net/docs/quickstart/configuring-the-librarys-behavior
阅读全文