File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ private static void SetGlobalVariables()
85
85
}
86
86
WebToolPlugins . SetVariable ( "webGlVersion" , webGraphics ) ;
87
87
WebToolPlugins . SetVariable ( "unityVersion" , Application . unityVersion ) ;
88
+ WebToolPlugins . SetVariable ( "applicationVersion" , Application . version ) ;
88
89
#if ! UNITY_EDITOR && UNITY_WEBGL
89
90
WebToolPlugins . SetVariable ( "unityCaptureAllKeyboardInputDefault" , WebGLInput . captureAllKeyboardInput ? "true" : "false" ) ;
90
91
#endif
Original file line number Diff line number Diff line change @@ -553,9 +553,9 @@ function getInfoPanel() {
553
553
infoPanel . id = 'infoPanel' ;
554
554
document . body . appendChild ( infoPanel ) ;
555
555
var infoHeader = document . createElement ( 'h3' ) ;
556
- if ( typeof unityVersion != `undefined` && typeof webGlVersion != `undefined` ) {
556
+ if ( typeof unityVersion != `undefined` && typeof applicationVersion != `undefined` && typeof webGlVersion != `undefined` ) {
557
557
// Set by WebGlBridge in Unity
558
- infoHeader . textContent = `Unity ${ unityVersion } (${ webGlVersion } )` ;
558
+ infoHeader . textContent = `Unity ${ unityVersion } @ ${ applicationVersion } (${ webGlVersion } )` ;
559
559
} else {
560
560
infoHeader . textContent = `Unity InfoPanel` ;
561
561
}
You can’t perform that action at this time.
0 commit comments