12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace XRTool.Util
- {
- public class SystemSettings
- {
- private string prikey = "SystemSetting";
- /// <summary>
- /// 日志等级,当设置的日志等级大于或者等于目标日志等级的时候才输出日志
- /// 日志等级为5个级别
- /// 0代表不对外输出日志,仅编辑器时输出日志
- /// 1,代表正常的日志输出,一般是输出基本的start,awake,或者某些特殊状态下的日志
- /// 2,代表输出相对频繁的日志,一般的协程,异步下载,或者某些重复执行的数据的日志
- /// 3,代表输出Update下的日志,此部分一般在定位某些问题时才开启3级别
- /// 4,最高日志级别,慎用,输出所有级别的日志,一般在定位复杂问题时才使用
- /// </summary>
- private int logLevel = 1;
- private bool ifOpenFPS = true;
- private int qualityLevel = 2;
- private int shadowType = 1;
- private string ip = "192.168.2.87";
- private string port = "2020";
- private bool ifOpenLog = true;
- private float rayDis = 1;
- /// <summary>
- /// 语言,0代表中文,1代表英文
- /// </summary>
- private int language = 0;
- /// <summary>
- /// 状态同步的频率
- /// </summary>
- private float deltTime = 0.1f;
- public string Prikey { get => prikey; set => prikey = value; }
- public int LogLevel { get => logLevel; set => logLevel = value; }
- public bool IfOpenFPS { get => ifOpenFPS; set => ifOpenFPS = value; }
- public int QualityLevel { get => qualityLevel; set => qualityLevel = value; }
- public int ShadowType { get => shadowType; set => shadowType = value; }
- public string Ip { get => ip; set => ip = value; }
- public string Port { get => port; set => port = value; }
- public bool IfOpenLog { get => ifOpenLog; set => ifOpenLog = value; }
- public int Language { get => language; set => language = value; }
- public float DeltTime { get => deltTime; set => deltTime = value; }
- public float RayDis { get => rayDis; set => rayDis = value; }
- }
- }
|