Releases: niqibiao/unity-csharpconsole
Releases · niqibiao/unity-csharpconsole
v1.4.2
v1.4.1
Changes since v1.3.1
- fix: read scriptCompilationFailed on main thread, harden dispatch loop (v1.4.1) (23d60f2)
- feat(compiler): allow unsafe code in REPL submissions (ad44a9b)
- feat(repl): show fullscreen warmup panel during startup compile (fdfec07)
- refactor: rename compileErrorCount to compileFailed (bool) (5b990fa)
- fix: add CommandType.cs.meta, use scriptCompilationFailed for compileErrorCount (c32952b)
- chore: bump version to 1.4.0 (b7df13a)
- feat: add isCompiling and compileErrorCount to health response (cbca90a)
- feat: propagate commandType through CommandDescriptor and CommandRouter (159a125)
- feat: add CommandType enum and commandType property to CommandActionAttribute (a4e9601)
Full changelog: v1.3.1...v1.4.1
v1.3.1
Changes since v1.3.0
- fix: improve refresh reliability and bump version to 1.3.1 (06d8dad)
Full changelog: v1.3.0...v1.3.1
v1.3.0
What's New in v1.3.0
Prefab Asset Commands (9 new commands)
Direct editing of prefab assets on disk without needing to instantiate into a scene:
| Command | Description |
|---|---|
prefab/asset_hierarchy |
Read the internal hierarchy tree of a prefab asset |
prefab/asset_get |
Get detailed info (name, tag, layer, transform, components) about a GameObject in a prefab |
prefab/asset_get_component |
Read all serialized properties of a specific component |
prefab/asset_modify_component |
Modify component fields with auto-save |
prefab/asset_add_component |
Add a component to any GameObject in the prefab |
prefab/asset_remove_component |
Remove a component by type and index |
prefab/asset_modify_gameobject |
Modify GO properties (name, tag, layer, active, isStatic) |
prefab/asset_add_gameobject |
Add a child GameObject at a specified path |
prefab/asset_remove_gameobject |
Remove a child GameObject (root deletion prevented) |
All write commands auto-save via PrefabUtility.SavePrefabAsset(). Addressing uses assetPath + gameObjectPath (relative path within the prefab).
DontDestroyOnLoad Support
All GameObject commands now discover objects in the DontDestroyOnLoad scene during play mode:
gameobject/findsearches DDOL scene after all loaded scenesFindByPathfalls back to DDOL roots when path not found in regular scenesscene/hierarchyresponse includes a newdontDestroyOnLoadRootsfield
Bug Fixes
- Direct launch discovery: Service startup now writes
refresh_state.jsonimmediately, so REPL direct launch can discover freshly started editors without waiting for a refresh cycle - Runtime defines after /reload:
/reloadnow properly clears the runtime define line override, allowing defines to be re-read from file - Remote compile server defines path:
/reloadrestores the original localruntime_defines_pathinstead of keeping the remote server's temp path - Playmode exit during compile: Allow exiting playmode while the editor is compiling (entering is still blocked)
Improvements
selection.getnow returns rich object info (name, typeName, assetPath, hierarchyPath) instead of bare ID/path arrays- Shared
SerializedPropertyToString,TrySetSerializedProperty,PropertyInfo, andFieldPairhelpers extracted toCommandHelpersfor reuse across scene and prefab commands
Breaking Changes
project/selection.get: Response structure changed from{ instanceIds[], assetPaths[] }to{ objects[] }with full object detailsscene/hierarchy: Response now includesdontDestroyOnLoadRootsarray (empty in edit mode)
unity-cli-plugin Sync Required
This release adds/changes commands and response structures. Consumers (especially unity-cli-plugin) should update to handle the new prefab commands and breaking response changes.
v1.2.0
Changes since v1.0.0
- chore: sync PackageVersion constant to 1.2.0 (7b6fb48)
- chore: remove CLAUDE.md from repo tracking, keep local only (18ca0dd)
- chore: bump version to 1.2.0 (cd28269)
- docs: add asset commands to README, fix command count and Python version (794ae9f)
- ci: add GitHub Actions workflow to auto-create releases on version tags (bc1fd72)
- refactor: pass resolved defines to EditorREPLCompiler constructor (6cbc6bd)
- feat: command framework improvements, asset commands, and bug fixes (03a6a26)
- fix: enforce Python 3.7+ minimum and fix datetime.UTC compat for older interpreters (60d35be)
- docs: add icons to README section headings for visual navigation (0b93ede)
- fix: service init/shutdown reliability, remote console validation, and upload cache safety (2b023cd)
- fix: lazy-init default defines to avoid InitializeOnLoadMethod ordering race (0103a07)
- docs: add python-prompt-toolkit and HybridCLR to related projects (2c3852d)
Full changelog: v1.0.0...v1.2.0