Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
1/7
Thread - Sync is a quick and easy way for you to sync your Unity independent code and components with the Unity thread! It has a high potential to increase the performance of your solution.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.41f1
Compatible
Compatible
Compatible
2019.4.24f1
Compatible
Compatible
Compatible
Additional compatibility information

No Scriptable Render Pipeline dependencies.

Description

The Unity Engine is a powerful piece of software that makes a ton of awesome results possible. As long as you can stay in the Unity Eco System, you'll be fine. But since it is inevitable to have subsystems that run independently of the Unity thread but need to access it, a problem arises here.


Some examples of such subsystems are:

  • Thread based systems
  • Network based systems
  • CAN / LIN / Serial Bus systems
  • etc.

These systems operate at their own speed and thus must be synchronized with the Unity thread. If the systems are not synchronized, the interactions with Unity outside the thread will almost always not be invoked. There are “happy accidents” where the interactions go through, but randomness is mostly not the goal of programming.


The components of this asset help synchronize with the Unity thread.



Sync

With this component, it is possible to queue actions to be invoked once on the next call of the desired Unity update.


The supported updates are:

  • Update()
  • FixedUpdate()
  • LateUpdate()


EventSync

With this component, it is possible to hook onto the desired Unity update with listeners.


The supported updates are:

  • Update()
  • FixedUpdate()
  • LateUpdate()

Concluding

This asset is the result of many years of experience with Unity and its use outside of games.

Technical details

Sync

  • Enqueue actions that will be invoked once on the next call of the desired Unity update

EventSync

  • Hook onto the desired Unity update with listeners
  • Please use this component only if there is no other way and you really need it! It supports writing spaghetti code and cluttering the application

Benefits

  • It is not necessary to reimplement existing code based on the Unity logic
  • Boost in performance as you can save a lot of MonoBehaviours where each brought its own Update, FixedUpdate and LateUpdate implementation
  • Adds a lot of flexibility as you can just write a single wrapper that will sync your code into Unity
  • Each of the components disposes itself OnDestroy()
  • All relevant methods are thread safe
  • Build-In DontDestroyOnLoad functionality
  • Clear Naming

Thread - Sync

(not enough ratings)
10 users have favourite this asset
(10)
FREE
2 years ago
SImple Tool for Prototyping
It's made prototyping a lot less painful, and I've found myself prototyping more after using it because I get results faster.
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR