{"id":18681678,"url":"https://github.com/mrrobinofficial/unity-parser","last_synced_at":"2026-05-17T19:39:19.715Z","repository":{"id":169446993,"uuid":"430651816","full_name":"MrRobinOfficial/Unity-Parser","owner":"MrRobinOfficial","description":"A friendly parsing system for Unity. This system supports a wide range of data types, and offers try-parse methods.","archived":false,"fork":false,"pushed_at":"2023-02-03T12:11:53.000Z","size":2177,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T15:08:43.952Z","etag":null,"topics":["ncalc","parse","parser","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrRobinOfficial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-11-22T09:58:40.000Z","updated_at":"2024-04-09T12:41:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"2236b2e3-590c-4355-8e9b-a8a5d6a4b1d2","html_url":"https://github.com/MrRobinOfficial/Unity-Parser","commit_stats":null,"previous_names":["mrrobinofficial/unity-parser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MrRobinOfficial/Unity-Parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobinOfficial%2FUnity-Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobinOfficial%2FUnity-Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobinOfficial%2FUnity-Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobinOfficial%2FUnity-Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrRobinOfficial","download_url":"https://codeload.github.com/MrRobinOfficial/Unity-Parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrRobinOfficial%2FUnity-Parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279082053,"owners_count":26099328,"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-15T02:00:07.814Z","response_time":56,"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":["ncalc","parse","parser","unity","unity3d"],"created_at":"2024-11-07T10:08:43.622Z","updated_at":"2025-10-15T13:16:33.786Z","avatar_url":"https://github.com/MrRobinOfficial.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable-next-line --\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\" rel=\"noopener\" target=\"_blank\"\u003e\u003cimg width=\"150\" src=\"Resources/UnityParser_128x128.png\" alt=\"Parser logo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eParser [Unity Engine]\u003c/h1\u003e\n\n*Parsing system for Unity that helps developers easily convert strings into various data types within the engine. This system supports a wide range of data types, and offers try-parse methods to avoid allocating extra memory when parsing invalid strings.*\n\n\u003cdiv align=\"center\"\u003e\n\nThis parsing system was built using [NCalc](https://github.com/ncalc/ncalc).\u003cbr\u003e\u003cbr\u003e\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mrrobinofficial/unity-parser/blob/HEAD/LICENSE.txt)\n![maintenance-status](https://img.shields.io/badge/maintenance-as--is-yellow.svg)\n\n\u003c/div\u003e\n\n## Introduction\n\nParser is a helping system for folks who wants to parser string values into object values.\u003cbr\u003e\u003cbr\u003e\n**NOTE:** This system will try to parse string value as user input into object value.\nFor an example:\n\n```c#\nstring input = \"on\"; // True\n```\n\n```c#\nstring input = \"off\"; // False\n```\n\nI do **NOT** recommend using this parsing system for serializing data. Instead, I highly recommend checking out my other project on [uJSON](https://github.com/MrRobinOfficial/Unity-JSON) for a more suitable solution for serializing data.\n\n## Installation\n\n* [Add package](https://docs.unity3d.com/Manual/upm-ui-giturl.html) from this git URL: ```com.mrrobin.parser``` or https://github.com/MrRobinOfficial/Unity-Parser.git\n\nOr\n\n* Clone repo and build via Visual Studio as an .DLL\n\n## Quick guide\n\n```c#\nusing UnityParsers;\n```\nAvoid regular parse method (Can cause errors if not parse correct!)\n```c#\nprivate const string VECTOR3 = \"(-50, 30, 100)\";\nParsers.Parse\u003cUnityEngine.Vector2Int\u003e(VECTOR3); // This will gives us error! Use TryParse instead for error-proud solution!\n```\nFor an example\n```c#\nif (Parsers.TryParseVector3(VECTOR3, out UnityEngine.Vector3 result))\n{\n\n}\n\n```\nAvoid boxing/unboxing if you can. [Read more about it](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/boxing-and-unboxing)\n```c#\nprivate const string VECTOR3 = \"(-50, 30, 100)\";\nif (Parsers.TryParse(VECTOR3, out object result))\n{\n    // This take more performance because of boxing/unboxing values.\n}\n```\nTries to convert string with \"off\" into boolean\n```c#\nbool value = Parsers.ParseBoolean(\"off\"); // This will return false\n```\nTries to convert string with \"bytes color format\" into Color32\n```c#\nprivate const string COLOR_32 = \"(255, 0, 0)\";\nParsers.TryParseColor32(COLOR_32, out var color32); // Will return value as Color32\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobinofficial%2Funity-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrrobinofficial%2Funity-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrrobinofficial%2Funity-parser/lists"}