SkillAgentSearch skills...

UnityMainThreadDispatcher

Provides a simple, thread safe, non monobehaviour service for managing the queue of work items on unity main thread

Install / Use

/learn @gustavopsantos/UnityMainThreadDispatcher
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Unity Main Thread Dispatcher

Installation

Requires Unity 2019+

Install via UPM (using Git URL)

https://github.com/gustavopsantos/unitymainthreaddispatcher.git?path=/Assets/UnityMainThreadDispatcher/#1.0.0

Install manually (using .unitypackage)

  1. Download the .unitypackage from releases page.
  2. Import UnityMainThreadDispatcher.X.X.X.unitypackage

After downloading or installing by package manager, thats it, since we rely on low level player loop system, theres no need for creating a gameobject in order to hook MonoBehaviour update method

Usage

UnityMainThreadDispatcher.Dispatcher.Enqueue(() => Debug.Log("This is happening on unity main thread"));
View on GitHub
GitHub Stars19
CategoryDevelopment
Updated6mo ago
Forks2

Languages

C#

Security Score

87/100

Audited on Sep 12, 2025

No findings