Skip to content

Releases: niqibiao/unity-csharpconsole

v1.4.2

30 Apr 09:52

Choose a tag to compare

Changes since v1.4.1

Full changelog: v1.4.1...v1.4.2

v1.4.1

29 Apr 05:16

Choose a tag to compare

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

16 Apr 03:23

Choose a tag to compare

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

15 Apr 11:10

Choose a tag to compare

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/find searches DDOL scene after all loaded scenes
  • FindByPath falls back to DDOL roots when path not found in regular scenes
  • scene/hierarchy response includes a new dontDestroyOnLoadRoots field

Bug Fixes

  • Direct launch discovery: Service startup now writes refresh_state.json immediately, so REPL direct launch can discover freshly started editors without waiting for a refresh cycle
  • Runtime defines after /reload: /reload now properly clears the runtime define line override, allowing defines to be re-read from file
  • Remote compile server defines path: /reload restores the original local runtime_defines_path instead 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.get now returns rich object info (name, typeName, assetPath, hierarchyPath) instead of bare ID/path arrays
  • Shared SerializedPropertyToString, TrySetSerializedProperty, PropertyInfo, and FieldPair helpers extracted to CommandHelpers for reuse across scene and prefab commands

Breaking Changes

  • project/selection.get: Response structure changed from { instanceIds[], assetPaths[] } to { objects[] } with full object details
  • scene/hierarchy: Response now includes dontDestroyOnLoadRoots array (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

13 Apr 10:35

Choose a tag to compare

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

v1.0.0

12 Apr 11:04

Choose a tag to compare

Initial release

  • feat: command framework cleanup and cross-repo optimization pass (c4bbb16)
  • feat: update readme (531306c)
  • fix: resolve Play Mode enter not working when Unity is running in background (3fac183)
  • feat: add screenshots and update README (000c434)
  • v1.0 (49d2694)