Restructure project as a UPM package#4
Open
liortal53 wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
package.jsonso the repository can be installed directly as a Unity Package Manager package (e.g. via "Add package from git URL...").Assets/Editor/AutoSaveScene.csto a package-relativeEditor/AutoSaveScene.csand add an assembly definition (Editor/AutoSaveScene.asmdef) for it, preserving the original file GUIDs.Assets/andProjectSettings/full-project scaffolding, which is no longer needed now that the repo root itself is the package.README.md(install/usage instructions) andCHANGELOG.md.No changes were made to the autosave logic itself —
AutoSaveScene.csis unmodified aside from its location.Test plan
https://github.com/liortal53/AutoSaveScene.git) or a local path, and confirm it resolves without errors in Package Manager.Assets/Editor/AutoSavesin the consuming project at the configured interval.Generated by Claude Code