(Whisper) Scene Messenger
Singularity Productions
$0.0
Date |
Price |
---|---|
日期和时间 |
价钱($) |
03/19(2018) |
0.0 |
11/16(2024) |
0.0 |
Jump AssetStore
The (Whisper) Scene Messenger is a scene management and object communication tool that allows developers to send messages and data to any runtime class. A local messenger for GameObject level messaging is also provided.
Unlike other messaging systems, the (Whisper) Scene Messenger is designed to be simple to use, integrate, and extend without adding unnecessary complexity, and without any drop in performance. By making use of a specialized "Message" class that can take any number of parameters of different types, the system is incredibly well-suited for any game logic, without the need for many overloaded, templated, functions.
This tool saves precious time by allowing you to avoid tightly-coupled code, which can rapidly become complex and unreadable. Instead of setting up a large GameObject tree to use Unity's "SendMessage" or "BroadcastMessage" functions, you can easily use the delegate based messenger system while keeping the scene organized in the way you want to. Additionally, the included message class can take any number of parameters, so you can send messages with the amount of data you need, without needing to implement a large number of overloads.
Just add the (Whisper) Scene Messenger prefab and have your receiving behaviors register with the messenger. It will take care of the rest. An example scene and scripts are included to help you get started.
With the newest update, there is now a Local Messenger MonoBehaviour that can be added to any GameObject for object-level messaging. Simply add the component and access it with Unity's provided "GetComponent" function.
Features:
- Cleans up on scene load so you don't have to.
- Support any number of function parameters using the Message class.
- Easy to integrate!
- Much faster than "SendMessage" and similar reflection-based systems!
- Keeps code loosely coupled.
- Keeps scene organized!
- Support for persistent objects, just tick a checkbox!
- New local messenger allows for fast object-level messaging. No "SendMessage" required!
- Source code included!
- Doxygen documentation included in project and online.
- Custom inspector included.
Website: Singularity Productions
Demo: Unity Stealth
Forum Post: (Whisper) Scene Messenger