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