Skip to content

Restructure project as a UPM package#4

Open
liortal53 wants to merge 1 commit into
masterfrom
claude/upm-package-structure-rms523
Open

Restructure project as a UPM package#4
liortal53 wants to merge 1 commit into
masterfrom
claude/upm-package-structure-rms523

Conversation

@liortal53

Copy link
Copy Markdown
Owner

Summary

  • Add package.json so the repository can be installed directly as a Unity Package Manager package (e.g. via "Add package from git URL...").
  • Move Assets/Editor/AutoSaveScene.cs to a package-relative Editor/AutoSaveScene.cs and add an assembly definition (Editor/AutoSaveScene.asmdef) for it, preserving the original file GUIDs.
  • Remove the Assets/ and ProjectSettings/ full-project scaffolding, which is no longer needed now that the repo root itself is the package.
  • Add README.md (install/usage instructions) and CHANGELOG.md.

No changes were made to the autosave logic itself — AutoSaveScene.cs is unmodified aside from its location.

Test plan

  • In a Unity project, add this package via git URL (https://github.com/liortal53/AutoSaveScene.git) or a local path, and confirm it resolves without errors in Package Manager.
  • Confirm scenes are still auto-saved to Assets/Editor/AutoSaves in the consuming project at the configured interval.

Generated by Claude Code

Convert the repository from a full Unity project into a Unity Package
Manager package: add package.json, move the editor script into a
package-relative Editor/ folder with an assembly definition, drop the
now-unneeded Assets/ProjectSettings project scaffolding, and add
README/CHANGELOG documenting installation via git URL.
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.

2 participants