Modula supports easy integration for any type that extends MonoBehaviour.
Creating custom Module type
To create a new module type, simply add new class and paste the following:
Replace "YourModule" with your preferred name
Replace "CustomBehaviour" with any other class that extends MonoBehaviour
Now you can use YourModule class in the same way you use Module, but it also supports
all the features implemented in CustomBehaviour!
Built-In integrations
These are integrations with 3rd party packages that are supported out-of-the-box:
Mirror
Mirror is an Open Source Networking library for Unity.
If you want to support all of the Mirror'sNetworkBehaviour features in your modules,
we got you!
Simply derive from NetworkModule instead of Module for the seampless Mirror - Modula integration:
All the attributes etc will work as if you were just using NetworkBehaviour.
All the Modula’s features are still supported tho! Such as ModuleUpdate()
#Important Notices
While migrating to NetworkModule from NetworkBehaviour, don’t forget to override Awake()
and put base.Awake() to use optimization features.