v2.1.0
Quality of life improvements.
Added
- Utility window to help in creation of Scriptable Events. It can be found via Right Click > Create > Scriptable Event > Custom Scriptable Event (at the very bottom).
ScriptableEventConstants
class which can be used to order custom events more neatly.BaseScriptableEvent
class (withoutTArg
) which is inherited by all events and is used internally to draw inspector GUIs.DefaultScriptableEventEditor
which targetsBaseScriptableEvent
. This addresses some issues when Odin Inspector is present in the project.BaseScriptableEventListener
(withoutTArg
) which is now inherited by all listeners.BaseScriptableEventListenerEditor
which targetsBaseScriptableEventListener
. This addresses some issues when Odin Inspector is present in the project and will be used to add additional functionality to listener components in the future.- Support for
Action<TArg>
listeners. This means that regular methods can now be used as listeners without the need of implementingIScriptableEventListener<TArg>
. - Raise button which is shown next to each added listener. Using this button listeners can be raised individually through the inspector. This is useful for debugging purposes.
- Icons for events and listeners - this will require asset re-import.
- Odin Inspector support via the use of
#if ODIN_INSPECTOR
.
Changed
- Renamed Scriptable Event creation menu from Scriptable Events to Scriptable Event.
- Moved Scriptable Event menus below Folder and Script creation menu items so the package is less intrusive.
- All existing events now use
ScriptableEventConstants
to define their menu order. lockDescription
is no longer serialized as its only useful during edit mode.- All
bool
properties now have anis
prefix. - Improved
isDebug
messages to be more consistent. Additionally, a listenerObject
will be used as a context when possible to improve the ping functionality when clicking on a debug message in the Editor. - Events can now be raised in Edit mode via the Raise button in if any listeners are present in the event.
- Improved how event
description
is being drawn. - Reworked all samples to be more consistent.
- Updated usage documentation to follow new samples and showcase event creation.