{"id":13662354,"url":"https://github.com/illa4257/unity-IniStorage","last_synced_at":"2025-04-25T07:31:33.490Z","repository":{"id":42023708,"uuid":"257558886","full_name":"illa4257/unity-IniStorage","owner":"illa4257","description":"read / write ini files - iniStorage for Unity","archived":false,"fork":false,"pushed_at":"2022-04-17T20:07:55.000Z","size":13,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-10T17:47:04.594Z","etag":null,"topics":["csharp","ini","ini-parser","unity"],"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/illa4257.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}},"created_at":"2020-04-21T10:25:18.000Z","updated_at":"2024-04-13T16:50:43.000Z","dependencies_parsed_at":"2022-08-12T02:40:25.226Z","dependency_job_id":null,"html_url":"https://github.com/illa4257/unity-IniStorage","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illa4257%2Funity-IniStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illa4257%2Funity-IniStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illa4257%2Funity-IniStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illa4257%2Funity-IniStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illa4257","download_url":"https://codeload.github.com/illa4257/unity-IniStorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250774815,"owners_count":21485231,"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":["csharp","ini","ini-parser","unity"],"created_at":"2024-08-02T05:01:56.347Z","updated_at":"2025-04-25T07:31:33.484Z","avatar_url":"https://github.com/illa4257.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# IniStorage for Unity - Working with ini files in Unity!\n\n* Code can be changed! :)\n\n* Tested on Unity:\n  - 2021.2.7f1\n\nIn Unity forum: [**https://forum.unity.com/threads/read-write-ini-file.857215/**](https://forum.unity.com/threads/read-write-ini-file.857215/)\n\n---\n\n### How to put?\n\nMove the [**script**](https://github.com/illa4257/iniStorageForUnity/releases) to the project.\n\n### Example:\nCode:\n```c#\nvar ini = new IniStorage(Application.dataPath + \"/config.ini\");\n\nif(!ini.Contains(\"Test\"))\n    ini.Set(\"Test\", \"Test string\")\n        .ClearComments()\n        .AddComment(\"Test comment\")\n        .AddComment(\"Test comment 2\");\n\nif (!ini.Contains(\"Test2\"))\n    ini.Set(\"Test2\", \"Test string\");\n\nif (!ini.Contains(\"Test3\"))\n    ini.Set(\"Test3\", \"Test string\");\n\nif (!ini.Contains(\"Test4\"))\n    ini.Set(\"Test4\", \"Test string\")\n        .AddComment(\"Test comment\");\n\nif (!ini.Contains(\"Test5\"))\n    ini.Set(\"Test5\", \"Test string\");\n\nif (!ini.Contains(\"TestGroup\", \"Test\"))\n    ini.Set(\"TestGroup\", \"Test\", 5.545434f)\n        .ClearComments()\n        .AddComment(\"Test group pair comment\");\n\nif (!ini.Contains(\"TestGroup\", \"Test2\"))\n    ini.Set(\"TestGroup\", \"Test2\", \"Test value\");\n\nini.GetGroup(\"TestGroup\")\n    .ClearComments()\n    .AddComment(\"Test group comment!\");\n\nif (!ini.Contains(\"TestGroup\", \"Test3\"))\n    ini.Set(\"TestGroup\", \"Test3\", \"Test value 2\");\n\nif (!ini.ContainsEndComment(\"End comment\"))\n    ini.ClearEndComments()\n        .AddEndComment(\"End comment\")\n        .AddEndComment(\"End comment 2\");\n\nini.Save();\n\nDebug.Log(ini.GetStringOrDefault(\"Test\", \"None\"));\nDebug.Log(ini.GetFloat(\"TestGroup\", \"Test\"));\nDebug.Log(ini.GetFloatOrDefault(\"TestGroup\", \"Test2\", 0f));\n```\n\nconfig.ini:\n```ini\n#Test comment\n#Test comment 2\nTest=Test string\nTest2=Test string\nTest3=Test string\nTest4=Test string\nTest5=Test string\n\n#Test group comment!\n[TestGroup]\n\n#Test group pair comment\nTest=5,545434\nTest2=Test value\nTest3=Test value 2\n\n#End comment\n#End comment 2\n```\n\nLogs:\n```\nTest string\n5.545434\n0\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filla4257%2Funity-IniStorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filla4257%2Funity-IniStorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filla4257%2Funity-IniStorage/lists"}