SystemSettings.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace XRTool.Util
  5. {
  6. public class SystemSettings
  7. {
  8. private string prikey = "SystemSetting";
  9. /// <summary>
  10. /// 日志等级,当设置的日志等级大于或者等于目标日志等级的时候才输出日志
  11. /// 日志等级为5个级别
  12. /// 0代表不对外输出日志,仅编辑器时输出日志
  13. /// 1,代表正常的日志输出,一般是输出基本的start,awake,或者某些特殊状态下的日志
  14. /// 2,代表输出相对频繁的日志,一般的协程,异步下载,或者某些重复执行的数据的日志
  15. /// 3,代表输出Update下的日志,此部分一般在定位某些问题时才开启3级别
  16. /// 4,最高日志级别,慎用,输出所有级别的日志,一般在定位复杂问题时才使用
  17. /// </summary>
  18. private int logLevel = 1;
  19. private bool ifOpenFPS = true;
  20. private int qualityLevel = 2;
  21. private int shadowType = 1;
  22. private string ip = "192.168.2.87";
  23. private string port = "2020";
  24. private bool ifOpenLog = true;
  25. private float rayDis = 1;
  26. /// <summary>
  27. /// 语言,0代表中文,1代表英文
  28. /// </summary>
  29. private int language = 0;
  30. /// <summary>
  31. /// 状态同步的频率
  32. /// </summary>
  33. private float deltTime = 0.1f;
  34. public string Prikey { get => prikey; set => prikey = value; }
  35. public int LogLevel { get => logLevel; set => logLevel = value; }
  36. public bool IfOpenFPS { get => ifOpenFPS; set => ifOpenFPS = value; }
  37. public int QualityLevel { get => qualityLevel; set => qualityLevel = value; }
  38. public int ShadowType { get => shadowType; set => shadowType = value; }
  39. public string Ip { get => ip; set => ip = value; }
  40. public string Port { get => port; set => port = value; }
  41. public bool IfOpenLog { get => ifOpenLog; set => ifOpenLog = value; }
  42. public int Language { get => language; set => language = value; }
  43. public float DeltTime { get => deltTime; set => deltTime = value; }
  44. public float RayDis { get => rayDis; set => rayDis = value; }
  45. }
  46. }