Skip to content

Commit a2894d2

Browse files
update
resolving concern over the .EndVertical();
1 parent edb3404 commit a2894d2

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

com.unity.netcode.gameobjects/Editor/Configuration/NetcodeSettingsProvider.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,14 @@ private static void OnGuiHandler(string obj)
224224
/// <param name="settings">The project settings holding the opt-in flag and the applied-defaults marker.</param>
225225
private static void DrawHybridSettings(NetcodeForGameObjectsProjectSettings settings)
226226
{
227-
GUILayout.BeginVertical("Box");
228-
GUILayout.Label("Hybrid (Netcode for Entities)", EditorStyles.boldLabel);
229-
230227
if (HybridNetcodeConfigApplier.RequiresExperimentalOptIn && !DrawUnifiedNetcodeApiToggle(settings))
231228
{
232-
GUILayout.EndVertical();
233229
return;
234230
}
235231

232+
GUILayout.BeginVertical("Box");
233+
GUILayout.Label("Hybrid (Netcode for Entities)", EditorStyles.boldLabel);
234+
236235
var config = HybridNetcodeConfigApplier.ResolveGlobalConfig();
237236
if (config == null)
238237
{

0 commit comments

Comments
 (0)