{"id":16209221,"url":"https://github.com/gilzoide/unity-reset-after-play-mode","last_synced_at":"2026-05-17T06:41:29.937Z","repository":{"id":70590860,"uuid":"603905429","full_name":"gilzoide/unity-reset-after-play-mode","owner":"gilzoide","description":"Editor-only ScriptableObject that resets other assets' properties after exiting Play Mode to avoid unwanted diffs in version control","archived":false,"fork":false,"pushed_at":"2024-01-10T12:39:17.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T20:50:07.713Z","etag":null,"topics":["playmode","source-control","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilzoide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["gilzoide"],"patreon":null,"open_collective":null,"ko_fi":"gilzoide","tidelift":null,"community_bridge":null,"liberapay":"gilzoide","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-02-19T22:33:39.000Z","updated_at":"2024-11-28T06:56:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0f456b6-0b9e-4803-813b-485e6946d827","html_url":"https://github.com/gilzoide/unity-reset-after-play-mode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gilzoide/unity-reset-after-play-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-reset-after-play-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-reset-after-play-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-reset-after-play-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-reset-after-play-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilzoide","download_url":"https://codeload.github.com/gilzoide/unity-reset-after-play-mode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-reset-after-play-mode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013271,"owners_count":26085250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["playmode","source-control","unity","unity3d"],"created_at":"2024-10-10T10:28:47.324Z","updated_at":"2025-10-12T22:33:41.687Z","avatar_url":"https://github.com/gilzoide.png","language":"C#","funding_links":["https://github.com/sponsors/gilzoide","https://ko-fi.com/gilzoide","https://liberapay.com/gilzoide"],"categories":[],"sub_categories":[],"readme":"# Reset After Play Mode\n[![openupm](https://img.shields.io/npm/v/com.gilzoide.reset-after-play-mode?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gilzoide.reset-after-play-mode/)\n\nEditor-only `ScriptableObject` that resets other assets' properties after exiting Play Mode.\n\nUse this to avoid unwanted diffs in source control for `Material`s, `ScriptableObject`s or other assets that get modified during gameplay.\n\n\n## How to install\nEither:\n- Use the [openupm registry](https://openupm.com/) and install this package using the [openupm-cli](https://github.com/openupm/openupm-cli):\n  ```\n  openupm add com.gilzoide.reset-after-play-mode\n  ```\n- Install using the [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html) with the following URL:\n  ```\n  https://github.com/gilzoide/unity-reset-after-play-mode.git#1.0.0\n  ```\n- Clone this repository or download a snapshot of it directly inside your project's `Assets` or `Packages` folder.\n- Just copy the [ResetAfterPlayMode.cs](Editor/ResetAfterPlayMode.cs) script into your project. Since it works in the editor only, feel free to add it inside an `Editor` folder to avoid the script being included in builds.\n\n\n## How to use\n1. Use the `Assets -\u003e Create -\u003e Reset After Play Mode` menu item to create an instance of the `ResetAfterPlayMode` object in your project.\n   \n   Since it works in the editor only, make sure to save this new asset to an `Editor` folder to avoid it getting included in builds.\n2. Add the assets that should be reset after exiting play mode in its `Assets` list.\n3. Play the game. Modify the assets however you want during gameplay.\n4. After exiting Play Mode, check that the assets are back to their initial state.\n5. Enjoy 🍾","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-reset-after-play-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilzoide%2Funity-reset-after-play-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-reset-after-play-mode/lists"}