{"id":13786190,"url":"https://github.com/miguel12345/UnityShapes","last_synced_at":"2025-05-11T22:30:46.373Z","repository":{"id":51128249,"uuid":"123611927","full_name":"miguel12345/UnityShapes","owner":"miguel12345","description":"Draw shapes (circle,line,arrow) with one line of code in Unity","archived":false,"fork":false,"pushed_at":"2020-09-15T01:47:10.000Z","size":661,"stargazers_count":117,"open_issues_count":2,"forks_count":26,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T19:09:50.285Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miguel12345.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":"2018-03-02T17:53:06.000Z","updated_at":"2024-07-09T08:09:11.000Z","dependencies_parsed_at":"2022-09-11T01:11:59.072Z","dependency_job_id":null,"html_url":"https://github.com/miguel12345/UnityShapes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguel12345%2FUnityShapes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguel12345%2FUnityShapes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguel12345%2FUnityShapes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miguel12345%2FUnityShapes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miguel12345","download_url":"https://codeload.github.com/miguel12345/UnityShapes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225101164,"owners_count":17421073,"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-03T19:01:11.301Z","updated_at":"2024-11-17T22:31:46.919Z","avatar_url":"https://github.com/miguel12345.png","language":"C#","funding_links":[],"categories":["Mesh"],"sub_categories":[],"readme":"# UnityShapes\nDraw anti-aliased, GPU-instance-supported, 0 allocation shapes (circle,line,arrow) with one line of code in Unity\n\n![](screenshot.png)\n\n\n\nCouldn't´t be simpler:\n\n```c#\nCircle.Draw(new CircleInfo{\n\t\t\t\tcenter = transform.position,\n\t\t\t\tforward = transform.forward,\n\t\t\t\tradius = 1f,\n\t\t\t\tfillColor = Color.Red\n\t\t\t});\n```\n\n\n\nLots of customization options\n\n\n\n```c#\npublic struct CircleInfo\n{\n  public float radius;\n  public Vector3 center;\n  public Vector3 forward;\n\n  public Color fillColor;\n\n  public bool bordered;\n  public Color borderColor;\n  public float borderWidth;\n\n  public bool isSector;\n  public float sectorInitialAngleInDegrees;\n  public float sectorArcLengthInDegrees;\n}\n```\n\n\n\n```c#\npublic struct LineInfo\n{\n  public Vector3 startPos;\n  public Vector3 endPos;\n  public Color fillColor;\n  public Vector3 forward;\n  public float width;\n\n  public bool bordered;\n  public Color borderColor;\n  public float borderWidth;\n\n  public bool dashed;\n  public float distanceBetweenDashes;\n  public float dashLength;\n\n  public bool startArrow;\n  public bool endArrow;\n\n  public float arrowWidth;\n  public float arrowLength;\n}\n```\n\n\n\n```c#\n public struct PolygonInfo\n {\n     public int sides;\n     public Vector3 center;\n     public float size;\n\n     public Color color;\n\n     public bool bordered;\n     public float borderWidth;\n     public Color borderColor;\n\n     public Quaternion rotation;\n }\n```\n\n\n\n\n\nTested on standalone and WebGL, but should work on mobile as well.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguel12345%2FUnityShapes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiguel12345%2FUnityShapes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguel12345%2FUnityShapes/lists"}