Skip to content

Commit 2372def

Browse files
refactor: enhance UnitySystemInfo type definition with additional comments for clarity
1 parent b11fc83 commit 2372def

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

module/source/types/unity-system-info.d.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,52 @@
55
* characteristics.
66
*/
77
type UnitySystemInfo = {
8+
/** Name of the browser (e.g., 'Chrome', 'Firefox'). */
89
browser: string;
10+
11+
/** Version of the browser (e.g., '91.0.4472.124'). */
912
browserVersion: string;
13+
14+
/** Name of the detected GPU (e.g., 'NVIDIA GeForce GTX 1050'). */
1015
gpu: string;
16+
17+
/** Indicates if cursor lock is supported. */
1118
hasCursorLock: boolean;
19+
20+
/** Indicates if fullscreen mode is supported. */
1221
hasFullscreen: boolean;
22+
23+
/** Indicates if threads are supported. */
1324
hasThreads: boolean;
25+
26+
/** Indicates if WebAssembly is supported. */
1427
hasWasm: boolean;
28+
29+
/** Indicates if WebAssembly threads are supported. */
1530
hasWasmThreads: boolean;
31+
32+
/** Indicates the supported WebGL version (1 or 2). */
1633
hasWebGL: 2 | 1;
34+
35+
/** Height of the browser window in pixels. */
1736
height: number;
37+
38+
/** Language of the browser (e.g., 'en-US'). */
1839
language: string;
40+
41+
/** Indicates if the device is mobile. */
1942
mobile: boolean;
43+
44+
/** Name of the operating system (e.g., 'Windows', 'macOS'). */
2045
os: string;
46+
47+
/** Version of the operating system (e.g., '10.15.7'). */
2148
osVersion: string;
49+
50+
/** User agent string of the browser. */
2251
userAgent: string;
52+
53+
/** Width of the browser window in pixels. */
2354
width: number;
2455
};
2556

0 commit comments

Comments
 (0)