@@ -5,62 +5,69 @@ export interface IUnityInstanceParameters {
5
5
* The url to the build data file generated by Unity. When using a relative url,
6
6
* keep in mind this is relative from the path where your html file is served.
7
7
* @public
8
+ * @readonly
8
9
* @type {string }
9
10
*/
10
- dataUrl : string ;
11
+ readonly dataUrl : string ;
11
12
12
13
/**
13
14
* The url to the framework file generated by Unity. When using a relative url,
14
15
* keep in mind this is relative from the path where your html file is served.
15
16
* @public
17
+ * @readonly
16
18
* @type {string }
17
19
*/
18
- frameworkUrl : string ;
20
+ readonly frameworkUrl : string ;
19
21
20
22
/**
21
23
* The url to the unity code file generated by Unity. When using a relative url,
22
24
* keep in mind this is relative from the path where your html file is served.
23
25
* @public
26
+ * @readonly
24
27
* @type {string }
25
28
*/
26
- codeUrl : string ;
29
+ readonly codeUrl : string ;
27
30
28
31
/**
29
32
* The url where the streaming assets can be found. When using a relative url,
30
33
* keep in mind this is relative from the path where your html file is served.
31
34
* @public
35
+ * @readonly
32
36
* @type {string }
33
37
*/
34
- streamingAssetsUrl ?: string ;
38
+ readonly streamingAssetsUrl ?: string ;
35
39
36
40
/**
37
41
* The applications company name.
38
42
* @public
43
+ * @readonly
39
44
* @type {string }
40
45
*/
41
- companyName ?: string ;
46
+ readonly companyName ?: string ;
42
47
43
48
/**
44
49
* The applications product name.
45
50
* @public
51
+ * @readonly
46
52
* @type {string }
47
53
*/
48
- productName ?: string ;
54
+ readonly productName ?: string ;
49
55
50
56
/**
51
57
* The applications product version.
52
58
* @public
59
+ * @readonly
53
60
* @type {string }
54
61
*/
55
- productVersion ?: string ;
62
+ readonly productVersion ?: string ;
56
63
57
64
/**
58
65
* The Canvas can appear too blurry on retina screens. The devicePixelRatio
59
66
* determines how much extra pixel density should be added to allow for a
60
67
* sharper image.
61
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
62
68
* @public
63
69
* @type {number }
70
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
64
71
*/
65
72
devicePixelRatio ?: number ;
66
73
@@ -78,9 +85,9 @@ export interface IUnityInstanceParameters {
78
85
/**
79
86
* This object allow you to configure WebGLRenderingContext creation options
80
87
* which will be pass additional context attributes to the Unity canvas.
81
- * @see https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext
82
88
* @public
83
89
* @type {IWebGLContextAttributes }
90
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext
84
91
*/
85
92
webglContextAttributes ?: IWebGLContextAttributes ;
86
93
0 commit comments