Skip to content

Commit

Permalink
- updated webview examples: fixed scale factor in Three.JS example no…
Browse files Browse the repository at this point in the history
…t working with latest fix
  • Loading branch information
Christoph Hart committed Jul 12, 2023
1 parent e3ab4a1 commit e271be7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WebViewTests/Images/three-js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ renderer.shadowMapEnabled = true;
renderer.shadowMapType = THREE.PCFSoftShadowMap;


renderer.setSize( window.innerWidth, window.innerHeight);
renderer.setSize( 600, 400 );
document.body.appendChild( renderer.domElement );

const geometry = new THREE.BoxGeometry( 1, 1, 1 );
Expand Down
4 changes: 1 addition & 3 deletions WebViewTests/XmlPresetBackups/PlayCanvas.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
<ChildProcessors>
<Processor Type="ScriptProcessor" ID="Interface" Bypassed="0">
<ChildProcessors/>
<Content>
<Control type="ScriptComboBox" id="ComboBox1" value="4.0"/>
</Content>
<Content/>
<UIData Source="PlayCanvasUIData"/>
</Processor>
</ChildProcessors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<ContentProperties DeviceType="Desktop">
<Component type="ScriptWebView" id="WebView1" x="0.0" y="32.0" width="1024.0"
height="768.0"/>
height="768.0" enableCache="1"/>
<Component type="ScriptComboBox" id="ComboBox1" x="896.0" y="0.0" max="5"
items="0.75&#10;1.0&#10;1.25&#10;1.5&#10;2.0"/>
items="0.75&#10;1.0&#10;1.25&#10;1.5&#10;2.0" saveInPreset="0"/>
<Component type="ScriptButton" id="Button1" x="0.0" y="3.0" saveInPreset="0"
isMomentary="1"/>
</ContentProperties>

0 comments on commit e271be7

Please sign in to comment.