Skip to content

Commit

Permalink
On connect - hide just the menu panel - not the UI controller
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Feb 7, 2025
1 parent b80d69f commit cdd786f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Assets/Prefabs/NonVR Menu UI.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_RoomNameInput: {fileID: 8497429393582015138}
m_NicknameInput: {fileID: 1855410318653795537}
m_MultiplayerMenuPanel: {fileID: 4662939369836531456}
--- !u!222 &1517313830619284542
CanvasRenderer:
m_ObjectHideFlags: 0
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/Multiplayer/NonVrMultiplayerUi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class NonVrMultiplayerUi : MonoBehaviour
{
public TMP_InputField m_RoomNameInput;
public TMP_InputField m_NicknameInput;
public GameObject m_MultiplayerMenuPanel;

private ViewModeUI m_ViewModeUi;

Expand Down Expand Up @@ -65,8 +66,7 @@ private void OnJoinRoomCompleted(bool success)
var cameraPos = App.VrSdk.GetVrCamera().transform.position;
cameraPos.y += 12;
App.VrSdk.GetVrCamera().transform.position = cameraPos;
gameObject.SetActive(false);

m_MultiplayerMenuPanel.SetActive(false);
}
else
{
Expand Down

0 comments on commit cdd786f

Please sign in to comment.