From 5a8e975c73ce68a7dd30991d85f2f0291eda4e63 Mon Sep 17 00:00:00 2001 From: Vladimir Anisimov Date: Fri, 30 Aug 2024 20:52:35 +1000 Subject: [PATCH] Latest mirror fix --- .../Scenes/Client/Client.unity | 15 ++++++++++++++- .../BasicRoomsAndLobbies/Scenes/Room/Room.unity | 3 +-- .../Scripts/Room/RoomNetworkManager.cs | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Client/Client.unity b/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Client/Client.unity index 7f6110c2..34b9b395 100644 --- a/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Client/Client.unity +++ b/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Client/Client.unity @@ -38,7 +38,6 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -928,6 +927,15 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: aab5ad002bb1a8b4bbdfa6d7b201a512, type: 3} m_Name: m_EditorClassIdentifier: + logLevel: 3 + isGlobal: 1 + roomConnectionTimeout: 10 + autoStartInEditor: 0 + autoStartDelay: 1 + signInAsGuest: 1 + username: qwerty + password: qwerty12345 + offlineRoomScene: Client --- !u!4 &472155956 Transform: m_ObjectHideFlags: 0 @@ -2181,6 +2189,11 @@ PrefabInstance: propertyPath: OnRoomRegisteredEvent.m_PersistentCalls.m_Calls.Array.size value: 0 objectReference: {fileID: 0} + - target: {fileID: 643701551274921334, guid: 3114b2bf90808704bae88ad10a2aafd1, + type: 3} + propertyPath: headlessStartMode + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8973327076234395987, guid: 3114b2bf90808704bae88ad10a2aafd1, type: 3} propertyPath: sslEnabled diff --git a/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Room/Room.unity b/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Room/Room.unity index cd0c3ddf..bdbed815 100644 --- a/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Room/Room.unity +++ b/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scenes/Room/Room.unity @@ -38,7 +38,6 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -2360,7 +2359,7 @@ MonoBehaviour: logLevel: 0 isGlobal: 1 roomConnectionTimeout: 10 - autoStartInEditor: 1 + autoStartInEditor: 0 autoStartDelay: 1 signInAsGuest: 1 username: qwerty diff --git a/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scripts/Room/RoomNetworkManager.cs b/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scripts/Room/RoomNetworkManager.cs index 5708f07f..4c706718 100644 --- a/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scripts/Room/RoomNetworkManager.cs +++ b/Assets/MasterServerToolkit/Bridges/Mirror/BasicRoomsAndLobbies/Scripts/Room/RoomNetworkManager.cs @@ -101,7 +101,7 @@ public override void Awake() roomServerManager = GetComponent(); // Prevent start network manager in headless mode automatically - autoStartServerBuild = false; + headlessStartMode = HeadlessStartOptions.DoNothing; } public void StartRoomServer()