{"id":13661498,"url":"https://github.com/slavniyteo/one-line","last_synced_at":"2025-04-25T02:33:28.734Z","repository":{"id":215847357,"uuid":"99218202","full_name":"slavniyteo/one-line","owner":"slavniyteo","description":"One line property drawer for Unity3d","archived":false,"fork":false,"pushed_at":"2021-01-18T07:37:45.000Z","size":1138,"stargazers_count":146,"open_issues_count":3,"forks_count":12,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-10T16:45:04.132Z","etag":null,"topics":["property-drawer","unity","upm"],"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/slavniyteo.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":"2017-08-03T09:56:59.000Z","updated_at":"2024-08-07T21:35:59.000Z","dependencies_parsed_at":"2024-01-17T04:41:11.819Z","dependency_job_id":"52c5acc7-5e79-4e41-a692-beaf72ff322a","html_url":"https://github.com/slavniyteo/one-line","commit_stats":null,"previous_names":["slavniyteo/one-line"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavniyteo%2Fone-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavniyteo%2Fone-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavniyteo%2Fone-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavniyteo%2Fone-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slavniyteo","download_url":"https://codeload.github.com/slavniyteo/one-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250742110,"owners_count":21479734,"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":["property-drawer","unity","upm"],"created_at":"2024-08-02T05:01:35.871Z","updated_at":"2025-04-25T02:33:27.423Z","avatar_url":"https://github.com/slavniyteo.png","language":"C#","funding_links":[],"categories":["C\\#","Open Source Repositories","Inspector"],"sub_categories":["Editor"],"readme":"# Overview\n\nOneLine provides a simple way to organize your databases without writing dozens\nof boilerplate code. It draws objects in Inspector into one line instead default\nline-by-line style. Also it provides a few features like field highlightning, \nlocking array size, etc...\n\nRead about `OneLine` on habr: [1](https://habr.com/post/340536/), \n[2](https://habr.com/post/341064/) (ru).\n\nFull Reference is [here](./Documentation~/README.md).\n\n[![Unity Asset Store](https://img.shields.io/badge/Unity%20Asset%20Store-Free-green.svg)](https://assetstore.unity.com/packages/tools/gui/oneline-110758)\n![GitHub release](https://img.shields.io/github/release/slavniyteo/one-line.svg)\n![GitHub Release Date](https://img.shields.io/github/release-date/slavniyteo/one-line.svg)\n![Github commits (since latest release)](https://img.shields.io/github/commits-since/slavniyteo/one-line/latest.svg)\n![GitHub last commit](https://img.shields.io/github/last-commit/slavniyteo/one-line.svg)\n\n# News\n\n- **2019.08.20**: Added **how to build** instruction [here](#edit-oneline-project) on request [39](https://github.com/slavniyteo/one-line/issues/39).\n- **2019.08.08**: [v0.5.0](https://github.com/slavniyteo/one-line/releases/tag/v0.5.0) released! Added UPM Support.\n- **2019.01.15**: [v0.4.0](https://github.com/slavniyteo/one-line/releases/tag/v0.4.0) released!\n- **2018.03.01**: [v0.3.0](https://github.com/slavniyteo/one-line/releases/tag/v0.3.0) released!\n- **2018.02.27**: Added `[Expandable]` attribute. See [full documentation](./Documentation~/README.md) and [#22](https://github.com/slavniyteo/one-line/issues/22)\n- **2018.02.26**: Added custom property drawers support.  \n    Now any custom drawer, which returns height \u003c 20, is drown. Acceptable for \n    custom drawers of either types or attributes.\n\n- **2018.02.18**: Available on the [Asset Store](https://www.assetstore.unity3d.com/en/#!/content/110758) for free.\n\n# TL;DR\n\n- After importing look at `Documentation~/Examples/Overview/Overview.asset` (see the screenshot below) and open it in InspectorWindow. It'll show you all capabilities of the library;\n- In your code, add `using OneLine;` and `[OneLine]` to fields you want to draw into one line. Note that internal fields don't need `[OneLine]`: they are processed automatically;\n- IToo customize onelined fields, use **Width**, **Weight**, **HideLabel**, **Highlight**, **HideButtons** and **ArrayLength** attributes (see **Example.asset**);\n- Use **Separator** attribute to separate different fields;\n- Use **Expandable** attribute to follow object references (real street magic is here) (idea is stolen from [here](https://forum.unity.com/threads/editor-tool-better-scriptableobject-inspector-editing.484393/);\n- OneLine uses [RectEx](https://github.com/slavniyteo/rect-ex), so feel free to try it.\n- Compatible with either **.Net 2.0** or **.Net 4.5** backends.\n\n![Overview](./Documentation~/mdsrc/one-line-overview.png)\n\nCode of the screenshot above is [here](./Samples~/Scripts/Overview/Overview.cs).\n\n# Installation\n\nVersions prior v0.5.0 are available at [![Unity Asset Store](https://img.shields.io/badge/Unity%20Asset%20Store-Free-green.svg)](https://assetstore.unity.com/packages/tools/gui/oneline-110758).\n\nSince v0.5.0 One Line is managed via [Unity Package Manager](https://docs.unity3d.com/Manual/Packages.html).\n\nTo add OneLine to your Unity project, add following dependency to your \n`manifest.json` as described [here](https://docs.unity3d.com/Manual/upm-dependencies.html)\nand [here](https://docs.unity3d.com/Manual/upm-git.html). Use **master** or \nany version above **v0.5.0** (including) because v0.4.0 and previous versions are\nnot compatible with Unity Package Manager. \n\n```json\n{\n  \"dependencies\": {\n    \"st.rect-ex\": \"https://github.com/slavniyteo/rect-ex.git#master\",\n    \"st.one-line\": \"https://github.com/slavniyteo/one-line.git#master\"\n  }\n}\n```\n\nTo be able to run tests add these lines (actually OneLine doesn't have any tests\nbut RectEx has):\n\n```json\n{\n  \"dependencies\": {\n    \"st.rect-ex\": \"https://github.com/slavniyteo/rect-ex.git#master\",\n    \"st.one-line\": \"https://github.com/slavniyteo/one-line.git#master\"\n  },\n  \"testables\": [\n    \"st.rect-ex\",\n    \"st.one-line\"\n  ]\n}\n```\n\n# Edit OneLine Project\n\nAdded on request [39](https://github.com/slavniyteo/one-line/issues/39).\n\nWhen you add OneLine via UPM as described above, it becomes readonly. To be able to edit OneLine, you should add it to project as local dependency:\n\n1. Clone repository to local directory:\n\n```bash\ngit clone https://github.com/slavniyteo/one-line /home/user/projects/one-line\n```\n\n2. In your working project add dependency to cloned OneLine:\n\n```json\n{\n  \"dependencies\": {\n    \"st.rect-ex\": \"https://github.com/slavniyteo/rect-ex.git#master\",\n    \"st.one-line\": \"file:/home/user/projects/one-line\"\n  }\n}\n```\n\nOn Windows: \n\n```json\n{\n  \"dependencies\": {\n    \"st.rect-ex\": \"https://github.com/slavniyteo/rect-ex.git#master\",\n    \"st.one-line\": \"file:D:/projects/one-line\"\n  }\n}\n```\n\nNote that [RectEx](https://github.com/slavniyteo/rect-ex) is git dependency.\n\nIt's all. OneLine becomes editable at InspectorWindow when your working project is open. Besides you can edit scripts of OneLine and they'll be compiled with our project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavniyteo%2Fone-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslavniyteo%2Fone-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavniyteo%2Fone-line/lists"}