@@ -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
|
-
//
|
208
|
+
// TODO: Ideally all screenspace canvases should be combined in one render pass
|
207
209
|
this.gameObject.removeFromParent();
|
208
210
|
}
|
209
211
|
else {
|