File tree Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change 11import IUnityInstanceParameters from "./unity-instance-parameters" ;
22
3- export default interface IUnityConfig extends IUnityInstanceParameters {
3+ export default interface IUnityConfig {
44 /**
55 * The url to the build json file generated by Unity. When using a relative url,
66 * keep in mind this is relative from the path where your html file is served.
77 * @type {string }
88 */
99 loaderUrl : string ;
10+
11+ /**
12+ * The url to the build data file generated by Unity. When using a relative url,
13+ * keep in mind this is relative from the path where your html file is served.
14+ * @type {string }
15+ */
16+ dataUrl : string ;
17+
18+ /**
19+ * The url to the framework file generated by Unity. When using a relative url,
20+ * keep in mind this is relative from the path where your html file is served.
21+ * @type {string }
22+ */
23+ frameworkUrl : string ;
24+
25+ /**
26+ * The url to the unity code file generated by Unity. When using a relative url,
27+ * keep in mind this is relative from the path where your html file is served.
28+ * @type {string }
29+ */
30+ codeUrl : string ;
31+
32+ /**
33+ * The url where the streaming assets can be found. When using a relative url,
34+ * keep in mind this is relative from the path where your html file is served.
35+ * @type {string }
36+ */
37+ streamingAssetsUrl ?: string ;
38+
39+ /**
40+ * The applications company name.
41+ * @type {string }
42+ */
43+ companyName ?: string ;
44+
45+ /**
46+ * The applications product name.
47+ * @type {string }
48+ */
49+ productName ?: string ;
50+
51+ /**
52+ * The applications product version.
53+ * @type {string }
54+ */
55+ productVersion ?: string ;
56+
57+ /**
58+ * Unity Module injection.
59+ * @type {Object }
60+ */
61+ modules ?: Object ;
1062}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default interface IUnityInstanceParameters {
5252 modules ?: Object ;
5353
5454 /**
55- * A Canvas can appear too blurry on retina screens. The devicePixelRatio
55+ * The Canvas can appear too blurry on retina screens. The devicePixelRatio
5656 * determines how much extra pixel density should be added to allow for a
5757 * sharper image.
5858 * @type {number }
Original file line number Diff line number Diff line change @@ -33,4 +33,13 @@ export default interface IUnityProps {
3333 * @see https://stackoverflow.com/a/60854680
3434 */
3535 tabIndex ?: number ;
36+
37+ /**
38+ * The Canvas can appear too blurry on retina screens. The devicePixelRatio
39+ * determines how much extra pixel density should be added to allow for a
40+ * sharper image.
41+ * @type {number }
42+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
43+ */
44+ devicePixelRatio ?: number ;
3645}
You can’t perform that action at this time.
0 commit comments