| | 1 | | using UnityEngine; |
| | 2 | | using UnityEngine.Serialization; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | [System.Serializable] |
| | 7 | | public class DebugConfig |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// If enabled, filters all scene messages that are not soloSceneCoords |
| | 11 | | /// </summary> |
| | 12 | | public bool soloScene; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Used in conjunction with soloScene |
| | 16 | | /// </summary> |
| | 17 | | public Vector2Int soloSceneCoords; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Enabled when SetDebug() is sent by kernel. Usually coupled with the DEBUG_MODE url param. |
| | 21 | | /// </summary> |
| | 22 | | [System.NonSerialized] |
| 692 | 23 | | public BaseVariable<bool> isDebugMode = new BaseVariable<bool>(); |
| | 24 | |
|
| | 25 | | [System.NonSerialized] |
| 692 | 26 | | public BaseVariable<bool> isFPSPanelVisible = new BaseVariable<bool>(); |
| | 27 | |
|
| | 28 | | [System.NonSerialized] |
| 692 | 29 | | public BaseDictionary<string, bool> showSceneBoundingBoxes = new BaseDictionary<string, bool>(); |
| | 30 | |
|
| | 31 | | [System.NonSerialized] |
| 692 | 32 | | public BaseVariable<bool> isPreviewMenuActive = new BaseVariable<bool>(); |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// True when WSS message pipeline is enabled |
| | 36 | | /// </summary> |
| | 37 | | [System.NonSerialized] |
| | 38 | | public bool isWssDebugMode; |
| | 39 | |
|
| | 40 | | /// <summary> |
| | 41 | | /// Do not send global scenes messages (i.e. avatars) |
| | 42 | | /// </summary> |
| | 43 | | public bool ignoreGlobalScenes = false; |
| | 44 | |
|
| | 45 | | /// <summary> |
| | 46 | | /// do Debug.Break() and log when processing each message |
| | 47 | | /// </summary> |
| | 48 | | public bool msgStepByStep = false; |
| | 49 | | } |
| | 50 | | } |