Skip to content

fix(NetSyncManagerEditor): prevent editing advanced properties while playing#385

Merged
from2001 merged 1 commit intodevelopfrom
refactor/disable-advanced-option-onplay
Mar 19, 2026
Merged

fix(NetSyncManagerEditor): prevent editing advanced properties while playing#385
from2001 merged 1 commit intodevelopfrom
refactor/disable-advanced-option-onplay

Conversation

@from2001
Copy link
Collaborator

This pull request introduces a small but important change to the DrawAdvancedSection method in NetSyncManagerEditor.cs. The main update ensures that the advanced properties section in the Unity Editor is disabled (read-only) while the application is playing, preventing unintended edits during play mode.

  • Editor usability and safety:
    • Wrapped the advanced properties UI in an EditorGUI.DisabledScope that is active during play mode, making the section read-only when the application is running. [1] [2]

@from2001 from2001 merged commit 622399b into develop Mar 19, 2026
@from2001 from2001 deleted the refactor/disable-advanced-option-onplay branch March 19, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant