// Changes the Mesh for the Object Surface Observer on the Spatial Mapping model // to the model defined in the Experiment GameObject public void ChangeMesh() { var meshmanager = GetComponent <MeshManager>(); if (logPosRot.layout == "layout_01") { objectSurfaceObserver.roomModel = meshmanager.Layout1; //SWITCH THIS FEATURE ON ONCE MESHES ARE AVAILABLE } else if (logPosRot.layout == "layout_02") { objectSurfaceObserver.roomModel = meshmanager.Layout2; } else if (logPosRot.layout == "layout_03") { objectSurfaceObserver.roomModel = meshmanager.Layout3; } else if (logPosRot.layout == "layout_04") { objectSurfaceObserver.roomModel = meshmanager.Layout4; } // switch on the shaders after the correct layout is loaded mappingMaterial.Start(); }