This package provides a simple and powerful event system for Unity using ScriptableObject EventChannels. It allows you to create and receive events across different parts of your game without tightly coupling components and even in multi-scene environment.
To use in Unity clone with following git url to package manager.
Install the package using one of the following methods:
Install in the package manager using the following Git URL
https://github.com/xprees/Unity-Events.git
Install the package using npm scoped registry in Project Settings > Package Manager > Scoped Registries
{
"name": "NPM - xprees",
"url": "https://registry.npmjs.org",
"scopes": [
"cz.xprees"
]
}
Then simply install the package using the Unity Package Manager using the NPM - xprees scope or by the package name cz.xprees.events
.
The package will automatically enable event-logging capabilities when detects the Script Define Symbol XPREES_EVENT_LOGGING
from
cz.xprees.event-logging
package.