Needle Engine

Changes between version 3.10.3-beta and 3.10.4-beta
Files changed (1) hide show
  1. src/engine-components/ui/Canvas.ts +3 -1
src/engine-components/ui/Canvas.ts CHANGED
@@ -192,6 +192,8 @@
192
192
  onBeforeRenderRoutine = () => {
193
193
 
194
194
  if (this.context.isInVR) {
195
+ this.onUpdateRenderMode();
196
+ this.handleLayoutUpdates();
195
197
  // TODO TMUI @swingingtom - For VR this is so we don't have text clipping
196
198
  this.shadowComponent?.updateMatrixWorld(true);
197
199
  this.shadowComponent?.updateWorldMatrix(true, true);
@@ -203,7 +205,7 @@
203
205
  // console.log(this.previousParent?.name + "/" + this.gameObject.name);
204
206
 
205
207
  if (this.renderOnTop || this.screenspace) {
206
- // This is just a test but in reality it should be combined with all world canvases with render on top in one render pass
208
+ // TODO: Ideally all screenspace canvases should be combined in one render pass
207
209
  this.gameObject.removeFromParent();
208
210
  }
209
211
  else {