File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ export const UnityRenderer: VFC<UnityRendererProps> = ({
134134 productVersion : c . productVersion ,
135135 memoryUrl : c . memoryUrl ,
136136 symbolsUrl : c . symbolsUrl ,
137+ matchWebGLToCanvasSize : c . matchWebGLToCanvasSize ,
138+ devicePixelRatio : c . devicePixelRatio ,
137139 } ,
138140 ( p ) => onUnityProgress ( p )
139141 ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export interface UnityInstanceConfig {
88 companyName ?: string ;
99 productName ?: string ;
1010 productVersion ?: string ;
11+ matchWebGLToCanvasSize ?: boolean ;
12+ devicePixelRatio ?: number ;
1113}
1214
1315export interface UnityLoaderConfig extends UnityInstanceConfig {
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ declare interface Window {
5454 companyName ?: string ;
5555 productName ?: string ;
5656 productVersion ?: string ;
57+ matchWebGLToCanvasSize ?: boolean ;
58+ devicePixelRatio ?: number ;
5759 } ,
5860 onProgress ?: ( progress : number ) => void
5961 ) : Promise < UnityInstance > ;
You can’t perform that action at this time.
0 commit comments