{"id":24583426,"url":"https://github.com/ebukaracer/ezsaverlite","last_synced_at":"2026-03-11T17:02:06.832Z","repository":{"id":273692421,"uuid":"910040123","full_name":"ebukaracer/EzSaverLite","owner":"ebukaracer","description":"A Flexible Saver for Unity Games, with Support for WebGL Persistent Saving.","archived":false,"fork":false,"pushed_at":"2025-01-22T11:31:15.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T12:29:03.740Z","etag":null,"topics":["unity","unity-package","unity-webgl","unity3d","unity3d-plugin"],"latest_commit_sha":null,"homepage":"https://ebukaracer.github.io/EzSaverLite","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ebukaracer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-12-30T10:49:19.000Z","updated_at":"2025-01-22T11:31:05.000Z","dependencies_parsed_at":"2025-01-22T12:39:49.916Z","dependency_job_id":null,"html_url":"https://github.com/ebukaracer/EzSaverLite","commit_stats":null,"previous_names":["ebukaracer/ezsaverlite"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebukaracer%2FEzSaverLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebukaracer%2FEzSaverLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebukaracer%2FEzSaverLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebukaracer%2FEzSaverLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebukaracer","download_url":"https://codeload.github.com/ebukaracer/EzSaverLite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075638,"owners_count":20393979,"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","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":["unity","unity-package","unity-webgl","unity3d","unity3d-plugin"],"created_at":"2025-01-24T04:41:03.234Z","updated_at":"2026-03-11T17:02:06.733Z","avatar_url":"https://github.com/ebukaracer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EzSaverLite\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue)](http://makeapullrequest.com) [![License: MIT](https://img.shields.io/badge/License-MIT-blue)](https://ebukaracer.github.io/ebukaracer/md/LICENSE.html)\n\n**EzSaverLite** is a Unity package that provides a flexible way to save and load game data. It supports multiple storage backends, including PlayerPrefs and browser local storage for WebGL builds.\n\n[View in DocFx](https://ebukaracer.github.io/EzSaverLite)\n## Features\n- **Multiple Storage Backends**: Supports PlayerPrefs and browser's LocalStorage.\n- **Easy Integration**: Simple API for saving and loading data.\n- **Customizable**: Easily extendable to support additional storage backends.\n- **Data Types**: Supports saving and loading integers, floats, strings, and Booleans.\n- **Demo**: Includes a Demo to help you quickly get started.\n\n## Installation\n_Inside the Unity Editor using the Package Manager:_\n- Click the **(+)** button in the Package Manager and select **\"Add package from Git URL\"** (requires Unity 2019.4 or later).\n-  Paste the Git URL of this package into the input box: https://github.com/ebukaracer/EzSaverLite.git#upm\n-  Click **Add** to install the package.\n-  If your project uses **Assembly Definitions**, make sure to add a reference to this package under **Assembly Definition References**. \n    For more help, see [this guide](https://ebukaracer.github.io/ebukaracer/md/SETUPGUIDE.html).\n\n## Quick Usage\n#### Saving Data:\n```csharp\nSaverManager.Saver.SaveInt(\"highscore\", 100);\nSaverManager.Saver.SaveFloat(\"volume\", 0.75f);\nSaverManager.Saver.SaveString(\"playerName\", \"Racer\");\nSaverManager.Saver.SaveBool(\"isMusicOn\", true);\n```\n\n#### Loading Data:\n``` csharp\n// With default values set to the second argument\nint highscore = SaverManager.Saver.GetInt(\"highscore\", 0);\nfloat volume = SaverManager.Saver.GetFloat(\"volume\", 1.0f);\nstring playerName = SaverManager.Saver.GetString(\"playerName\", \"Guest\");\nbool isMusicOn = SaverManager.Saver.GetBool(\"isMusicOn\", false);\n```\n\n#### Checking for existence of Data:\n``` csharp\nbool hasHighscore = SaverManager.Saver.Contains(\"highscore\");\n```\n\n#### Clearing Data:\n``` csharp\nSaverManager.Saver.Clear(\"highscore\");\nSaverManager.Saver.ClearAll();\n```\n\n## How it works\n**EzSaverLite** uses `PlayerPrefs` by default in the Unity editor during development and for all platforms after deployment, except for WebGL. In the case of WebGL, it relies on the browser's `localstorage` to save and load data. Additionally, when multiple builds of the same project (with the same name) are created, the data persists across those builds.\n\n## Samples and Best Practices\n- Before deploying your WebGL project, navigate to the menu option: `Racer \u003e EzSaverLite \u003e Import WebGL Save Plugin(Force)` to import or update the LSS(Local Storage Saver) plugin, which will be used for saving and loading in the browser after deployment.\n- Optionally import this package's demo from the package manager's `Samples` tab.\n- To remove this package completely(leaving no trace), navigate to: `Racer \u003e EzSaverLite \u003e Remove package`\n\n## [Contributing](https://ebukaracer.github.io/ebukaracer/md/CONTRIBUTING.html)  \nContributions are welcome! Please open an issue or submit a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febukaracer%2Fezsaverlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febukaracer%2Fezsaverlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febukaracer%2Fezsaverlite/lists"}