From 4e27b1e7299b591f385822db13d03badc90cd711 Mon Sep 17 00:00:00 2001 From: MelekTaus Moribundus Date: Sun, 28 Jun 2026 15:51:49 +0200 Subject: [PATCH] Disable editor network bootstrap in builds; tune scenes and paint HUD panel NetworkBootstrap now destroys itself outside the editor. Camera FOV/background tweaks in Main, lobby light intensity, and paint HUD panel font/color polish. --- Assets/Prefabs/PaintHudPanel.prefab | 22 +++++++++++----------- Assets/Scenes/Lobby.unity | 2 +- Assets/Scenes/Main.unity | 12 ++++++------ Assets/Scripts/NetworkBootstrap.cs | 11 ++++++++++- 4 files changed, 28 insertions(+), 19 deletions(-) diff --git a/Assets/Prefabs/PaintHudPanel.prefab b/Assets/Prefabs/PaintHudPanel.prefab index 34688e1..fd7e6ae 100644 --- a/Assets/Prefabs/PaintHudPanel.prefab +++ b/Assets/Prefabs/PaintHudPanel.prefab @@ -1627,8 +1627,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 12 + m_fontSizeBase: 12 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -4249,8 +4249,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 12 + m_fontSizeBase: 12 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -4808,8 +4808,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 12 + m_fontSizeBase: 12 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -8095,15 +8095,15 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_Material: {fileID: 0} - m_Color: {r: 0.1, g: 0.1, b: 0.12, a: 0.92} + m_Color: {r: 0.09019608, g: 0.09019608, b: 0.10980392, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 0} - m_Type: 0 + m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 @@ -8779,8 +8779,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 14 - m_fontSizeBase: 14 + m_fontSize: 12 + m_fontSizeBase: 12 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 diff --git a/Assets/Scenes/Lobby.unity b/Assets/Scenes/Lobby.unity index 54ca66a..d72cce8 100644 --- a/Assets/Scenes/Lobby.unity +++ b/Assets/Scenes/Lobby.unity @@ -1073,7 +1073,7 @@ Light: serializedVersion: 12 m_Type: 1 m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 3 + m_Intensity: 2 m_Range: 10 m_SpotAngle: 30 m_InnerSpotAngle: 21.80208 diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 5d27de9..4ad0749 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -468,7 +468,7 @@ MonoBehaviour: LookAtTarget: {fileID: 0} CustomLookAtTarget: 0 Lens: - FieldOfView: 45 + FieldOfView: 48 OrthographicSize: 10 NearClipPlane: 0.1 FarClipPlane: 5000 @@ -739,7 +739,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 - m_BackGroundColor: {r: 0.13333334, g: 0.2, b: 0.26666668, a: 0} + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 @@ -762,7 +762,7 @@ Camera: height: 1 near clip plane: 0.1 far clip plane: 5000 - field of view: 45 + field of view: 48 orthographic: 0 orthographic size: 10 m_Depth: -1 @@ -948,7 +948,7 @@ MonoBehaviour: LookAtTarget: {fileID: 0} CustomLookAtTarget: 0 Lens: - FieldOfView: 45 + FieldOfView: 52 OrthographicSize: 10 NearClipPlane: 0.1 FarClipPlane: 5000 @@ -1240,7 +1240,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RawImage m_Material: {fileID: 0} - m_Color: {r: 0.26415092, g: 0.26415092, b: 0.26415092, a: 1} + m_Color: {r: 0.60784316, g: 0.60784316, b: 0.60784316, a: 0.60784316} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -1670,7 +1670,7 @@ MonoBehaviour: LookAtTarget: {fileID: 0} CustomLookAtTarget: 0 Lens: - FieldOfView: 45 + FieldOfView: 48 OrthographicSize: 10 NearClipPlane: 0.1 FarClipPlane: 5000 diff --git a/Assets/Scripts/NetworkBootstrap.cs b/Assets/Scripts/NetworkBootstrap.cs index eb638d3..6613f58 100644 --- a/Assets/Scripts/NetworkBootstrap.cs +++ b/Assets/Scripts/NetworkBootstrap.cs @@ -24,7 +24,16 @@ public class NetworkBootstrap : MonoBehaviour private NetworkManager _net; - private void Awake() => _net = GetComponent(); + private void Awake() + { + if (!Application.isEditor) + { + Destroy(this); + return; + } + + _net = GetComponent(); + } private void Update() {