Okto | Event System for Unity

Okto helps you avoid complex references between scripts by shifting your thinking to an event-driven approach. Publish events and have interested systems register their interest. This way, the player health system doesn't have to know about other systems. It just publishes an event, and anyone who is interested will receive it! Okto provides an event system for developers, allowing them to send events through a topic and receive them in other scripts which have registered their interest in the same topic. It operates without requiring that event senders know about event consumers, and without having to keep references to them. This results in cleaner and more modular code.

Using Okto is straightforward. Developers can quickly create entities by registering them for a given topic. When an event is sent through that topic, Okto will notify all registered consumers of the event. We recommend you keep your events as readonly structs, which are much more lightweight than classes, thus making Okto a lightweight asset.

Okto includes a beta version of a debug window that developers can use to view all the currently registered entities. This is a useful tool for debugging code that uses Okto and ensures that events are being sent and received as expected.

Okto includes features such as publishers and subscribers, clients and providers, producers and consumers, custom events, a debug visualizer, intuitive documentation, and complete test coverage.

Okto is not meant to replace the traditional development methodology of using references. Instead, Okto complements this methodology by providing an alternative way to handle messaging between scripts when they aren't directly related. The asset is only compatible with Unity versions 2021.3 LTS and up, for C# 9.0 support.

Okto | Event System for Unity - Asset Store

πŸ€– Chat with AI

AI is typing

Suggested Posts

Sub Routines: A Flexible Event System for Unity

Sub Routines: A Flexible Event System for Unity Thumbnail

Effortless Event Sequencing for Unity

Effortless Event Sequencing for Unity Thumbnail

AiMalgam: Scalable AI System for Unity Games

AiMalgam: Scalable AI System for Unity Games Thumbnail

Camera System for Unity

Camera System for Unity Thumbnail

Health System Pro for Unity

Health System Pro for Unity Thumbnail

MiTree: A Powerful Behavior Tree System for Unity

MiTree: A Powerful Behavior Tree System for Unity Thumbnail