File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
MCPForUnity/Editor/Windows Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ private enum ConnectionProtocol
2424 }
2525
2626 // Settings UI Elements
27+ private Label versionLabel ;
2728 private Toggle debugLogsToggle ;
2829 private EnumField validationLevelField ;
2930 private Label validationDescription ;
@@ -191,6 +192,7 @@ private void RefreshAllData()
191192 private void CacheUIElements ( )
192193 {
193194 // Settings
195+ versionLabel = rootVisualElement . Q < Label > ( "version-label" ) ;
194196 debugLogsToggle = rootVisualElement . Q < Toggle > ( "debug-logs-toggle" ) ;
195197 validationLevelField = rootVisualElement . Q < EnumField > ( "validation-level" ) ;
196198 validationDescription = rootVisualElement . Q < Label > ( "validation-description" ) ;
@@ -240,6 +242,7 @@ private void CacheUIElements()
240242 private void InitializeUI ( )
241243 {
242244 // Settings Section
245+ versionLabel . text = AssetPathUtility . GetPackageVersion ( ) ;
243246 debugLogsToggle . value = EditorPrefs . GetBool ( "MCPForUnity.DebugLogs" , false ) ;
244247
245248 validationLevelField . Init ( ValidationLevel . Standard ) ;
Original file line number Diff line number Diff line change 99 <ui:VisualElement class="section-content">
1010 <ui:VisualElement class="setting-row">
1111 <ui:Label text="Version:" class="setting-label" />
12- <ui:Label text="5.0.0 " name="version-label" class="setting-value" />
12+ <ui:Label text="... " name="version-label" class="setting-value" />
1313 </ui:VisualElement>
1414 <ui:VisualElement class="setting-row">
1515 <ui:Label text="Show Debug Logs:" class="setting-label" />
You can’t perform that action at this time.
0 commit comments