{"id":13661286,"url":"https://github.com/LightBuzz/Settings-Unity","last_synced_at":"2025-04-24T23:32:19.225Z","repository":{"id":75644703,"uuid":"127757028","full_name":"LightBuzz/Settings-Unity","owner":"LightBuzz","description":"Settings utility for Unity3D.","archived":false,"fork":false,"pushed_at":"2019-04-02T10:34:29.000Z","size":599,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T16:51:14.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LightBuzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-04-02T13:02:54.000Z","updated_at":"2022-05-31T07:23:49.000Z","dependencies_parsed_at":"2023-06-07T05:30:37.491Z","dependency_job_id":null,"html_url":"https://github.com/LightBuzz/Settings-Unity","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FSettings-Unity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FSettings-Unity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FSettings-Unity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LightBuzz%2FSettings-Unity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LightBuzz","download_url":"https://codeload.github.com/LightBuzz/Settings-Unity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250727797,"owners_count":21477372,"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":[],"created_at":"2024-08-02T05:01:31.953Z","updated_at":"2025-04-24T23:32:18.377Z","avatar_url":"https://github.com/LightBuzz.png","language":"C#","funding_links":[],"categories":["C\\#","Game Development"],"sub_categories":["Unity Engine: Resources"],"readme":"# Settings utility for Unity apps\n\nAn easy-to-use mechanism for managing your game settings (```PlayerPrefs```) within your Unity app. The ```LightBuzz.Settings``` framework is exposing a generic C# API that allows you to store a lot of different value types.\n\n```\nDateTime date = Settings.Get\u003cDateTime\u003e(\"date_time_key\");\n```\n\n## Supported data types\n\nThe following data types are currently supported:\n\n* ```bool```\n* ```int```\n* ```short```\n* ```long```\n* ```float```\n* ```double```\n* ```string```\n* ```DateTime```\n* ```Guid```\n\n## Supported Platforms\n\nThe ```LightBuzz.Settings``` framework supports all of the Unity platforms:\n\n* Android\n* iOS\n* Standalone (Windows \u0026 Mac OS X)\n* Universal Windows Platform (UWP)\n* HoloLens\n\n## Examples\n\nSimply import the [latest Unity Package](https://github.com/LightBuzz/Settings-Unity/releases/latest) or the ```LightBuzz.Settings.dll``` file in your Assets folder.\n\n### Initialization\n\nUpon importing the assembly to your project, include its namespace in your C# file:\n\n```\nusing LightBuzz.Settings;\n```\n\nThen, initialize the Settings module from Unity's main thread:\n\n```\nprivate void Start()\n{\n   Settings.Initialize();\n}\n```\n\n### Add / Update a setting\n\n```\nSettings.Set\u003cstring\u003e(\"name\", \"Vangos Pterneas\");\nSettings.Set\u003cbool\u003e(\"nice_guy\", true);\nSettings.Set\u003cdouble\u003e(\"height\", 1.670);\nSettings.Set\u003cDateTime\u003e(\"birthday\", new DateTime(1988, 05, 20));\n```\n\n### Retrieve a setting\n\n```\nstring name = Settings.Get\u003cstring\u003e(\"name\");\nbool niceGuy = Settings.Get\u003cbool\u003e(\"nice_guy\");\ndouble height = Settings.Get\u003cdouble\u003e(\"height\");\nDateTime birthday = Settings.Get\u003cDateTime\u003e(\"birthday\");\n```\n\n### Delete a setting\n\n```\nSettings.Remove(\"name\");\nSettings.Remove(\"nice_guy\");\nSettings.Remove(\"height\");\nSettings.Remove(\"birthday\");\n```\n\n## Contributors\n* [Vangos Pterneas](http://pterneas.com) from [LightBuzz](http://lightbuzz.com)\n\n## License\nYou are free to use these libraries in personal and commercial projects by attributing the original creator of the project. [View full License](https://github.com/LightBuzz/Settings-Unity/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightBuzz%2FSettings-Unity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLightBuzz%2FSettings-Unity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLightBuzz%2FSettings-Unity/lists"}