Oculus: Initialize GUI to prevent startup crashes
This commit is contained in:
parent
b6b1687450
commit
d7fc716065
@ -88,6 +88,15 @@ public class VRViewManagerOculus extends AbstractVRViewManager {
|
|||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
setupCamerasAndViews();
|
setupCamerasAndViews();
|
||||||
|
|
||||||
|
if (environment.hasTraditionalGUIOverlay()) {
|
||||||
|
|
||||||
|
environment.getVRMouseManager().initialize();
|
||||||
|
|
||||||
|
// update the pose to position the gui correctly on start
|
||||||
|
update(0f);
|
||||||
|
environment.getVRGUIManager().positionGui();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private long session() {
|
private long session() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user