{"id":14960993,"url":"https://github.com/gilzoide/unity-managed-jobs","last_synced_at":"2025-10-24T20:30:40.734Z","repository":{"id":184896330,"uuid":"672642271","full_name":"gilzoide/unity-managed-jobs","owner":"gilzoide","description":"Use classes and other managed types with Unity's Job System","archived":false,"fork":false,"pushed_at":"2024-01-10T12:23:48.000Z","size":19,"stargazers_count":18,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T03:54:03.558Z","etag":null,"topics":["job-system","jobs","unity","unity3d","upm","upm-package"],"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/gilzoide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":["gilzoide"],"patreon":null,"open_collective":null,"ko_fi":"gilzoide","tidelift":null,"community_bridge":null,"liberapay":"gilzoide","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-07-30T19:12:43.000Z","updated_at":"2024-11-28T07:40:36.000Z","dependencies_parsed_at":"2024-10-10T10:40:26.385Z","dependency_job_id":null,"html_url":"https://github.com/gilzoide/unity-managed-jobs","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"0ea5c03ee368f420d38770004a2208a54e376042"},"previous_names":["gilzoide/unity-managed-jobs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-managed-jobs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-managed-jobs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-managed-jobs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilzoide%2Funity-managed-jobs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilzoide","download_url":"https://codeload.github.com/gilzoide/unity-managed-jobs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238030288,"owners_count":19404859,"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":["job-system","jobs","unity","unity3d","upm","upm-package"],"created_at":"2024-09-24T13:23:36.690Z","updated_at":"2025-10-24T20:30:40.274Z","avatar_url":"https://github.com/gilzoide.png","language":"C#","funding_links":["https://github.com/sponsors/gilzoide","https://ko-fi.com/gilzoide","https://liberapay.com/gilzoide"],"categories":[],"sub_categories":[],"readme":"# Managed Jobs\n[![openupm](https://img.shields.io/npm/v/com.gilzoide.managed-jobs?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gilzoide.managed-jobs/)\n\nUse classes and other managed types with [Unity's C# Job System](https://docs.unity3d.com/Manual/JobSystemOverview.html).\n\nThe Job System only accepts [blittable](https://en.wikipedia.org/wiki/Blittable_types) struct types for jobs.\nThis package makes it easy to use managed types as jobs by providing blittable structs that reference managed objects using `GCHandle` and forward job execution to them.\n\n\n## Features\n- Easily schedule jobs implemented by class types, as well as struct types with managed fields\n- Schedule managed `IJob` types using [ManagedJob](Runtime/ManagedJob.cs)\n- Schedule managed `IJobFor` types using [ManagedJobFor](Runtime/ManagedJobFor.cs)\n- Schedule managed `IJobParallelFor` types using [ManagedJobParallelFor](Runtime/ManagedJobParallelFor.cs)\n- Schedule managed `IJobParallelForTransform` types using [ManagedJobParallelForTransform](Runtime/ManagedJobParallelForTransform.cs)\n- Automatic disposal of the allocated `GCHandle` if you call `Schedule` / `Run` methods and their variations directly on the wrapper structs\n\n\n## Caveats\n- Managed jobs are not compatible with [Burst](https://docs.unity3d.com/Packages/com.unity.burst@latest)\n\n\n## Installing\nEither:\n- Use the [openupm registry](https://openupm.com/) and install this package using the [openupm-cli](https://github.com/openupm/openupm-cli):\n  ```\n  openupm add com.gilzoide.managed-jobs\n  ```\n- Install via [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html) using this repository URL and tag:\n  ```\n  https://github.com/gilzoide/unity-managed-jobs.git#1.0.0\n  ```\n- Clone this repository directly inside your project's `Assets` or `Packages` folder.\n\n## Basic Usage\n```cs\nusing Unity.Jobs;\nusing Gilzoide.ManagedJobs;\n\n// 1. Create your managed job type\npublic class MyManagedJobClass : IJob\n{\n    public string Message = \"Fields with managed types are supported!\";\n\n    public void Execute()\n    {\n        Debug.Log($\"Job is being executed! Here's the message: '{Message}'\");\n    }\n}\n\n// 2. Schedule the job by using the wrapper ManagedJob struct type\nvar myManagedJobObject = new MyManagedJobClass();\nvar jobHandle = new ManagedJob(myManagedJobObject).Schedule();\n// 3. Complete the jobHandle or use it as dependency to other jobs as usual\njobHandle.Complete();\n\n// 4. Enjoy 🍾\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-managed-jobs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilzoide%2Funity-managed-jobs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilzoide%2Funity-managed-jobs/lists"}