{"id":18716999,"url":"https://github.com/ollyisonit/unityeditorattributes","last_synced_at":"2025-11-10T12:30:13.605Z","repository":{"id":176299826,"uuid":"277685227","full_name":"ollyisonit/UnityEditorAttributes","owner":"ollyisonit","description":"A collection of dynamic property drawer attributes for use in the Unity Editor.","archived":false,"fork":false,"pushed_at":"2024-04-02T06:19:21.000Z","size":1472,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T10:35:40.077Z","etag":null,"topics":["unity","unity-editor","unity-scripts"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ollyisonit.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,"dei":null}},"created_at":"2020-07-07T01:21:10.000Z","updated_at":"2024-04-02T00:35:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ebd20d3-718a-4676-9452-3d3807694a05","html_url":"https://github.com/ollyisonit/UnityEditorAttributes","commit_stats":null,"previous_names":["dninosores/unityeditorattributes","ollyisonit/unityeditorattributes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollyisonit%2FUnityEditorAttributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollyisonit%2FUnityEditorAttributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollyisonit%2FUnityEditorAttributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ollyisonit%2FUnityEditorAttributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ollyisonit","download_url":"https://codeload.github.com/ollyisonit/UnityEditorAttributes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239581797,"owners_count":19662958,"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-editor","unity-scripts"],"created_at":"2024-11-07T13:14:30.035Z","updated_at":"2025-11-10T12:30:13.153Z","avatar_url":"https://github.com/ollyisonit.png","language":"C#","readme":"#  Unity Editor Attributes\nA collection of dynamic property drawer attributes for use in the Unity Editor.\n## Features\n\n### ReadOnly Attribute\nAttribute that allows a field to be displayed in-editor but not edited.\n\n![](readme-assets/read-only-example.PNG)\n\n``` C#\n    [ReadOnly]\n    public string readOnly = \"You can't edit this!\";\n```\n\n### Rename Attribute\nChanges the display name of the field in-editor.\n\n![](readme-assets/display-name-example.png)\n``` C#\n    [Rename(\"Display Name!\")]\n    public int hiddenName = 0;\n```\n\n### ConditionalHide Attribute\nDynamically hides and shows fields in-editor based on the state of the object.\n\nHere's a simple example where two fields are hidden/shown based on the state of a tickbox:\n\n![](readme-assets/ConditionalHideDemo1.gif)\n\n``` C#\n    public bool toggle = true;\n\n    [ConditionalHide(\"toggle\", true)]\n    public string toggleOn = \"Toggle is on!\";\n\n    [ConditionalHide(\"toggle\", false)]\n    public string toggleOff = \"Toggle is off!\";\n```\n\nAnd a more complex example with multiple tickboxes are taken into account:\n\n![](readme-assets/ConditionalHideDemo2.gif)\n\n``` C#\n    public bool toggle2 = true;\n    public bool toggle3 = true;\n\n    [ConditionalHide(new string[] { \"toggle2\", \"toggle3\" }, new object[] { true, true },\n    ConditionalHideAttribute.FoldBehavior.Or)]\n    public string OneActive = \"One toggle active!\";\n\n    [ConditionalHide(new string[] { \"toggle2\", \"toggle3\" }, new object[] { true, true },\n    ConditionalHideAttribute.FoldBehavior.And)]\n    public string BothActive = \"Both toggles active!\";\n```\n\n### PropertyDrawerFinder\nA utility class that can retrieve property drawers for types and fields. Useful for developing your own complex property drawers.\n\n## Installation\n[Download](https://github.com/ollyisonit/UnityEditorAttributes/releases/latest) or clone this repository and put it in the Assets folder of your Unity project.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Follyisonit%2Funityeditorattributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Follyisonit%2Funityeditorattributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Follyisonit%2Funityeditorattributes/lists"}