Skip to content

v2.1.0

Compare
Choose a tag to compare
@Edvinas01 Edvinas01 released this 05 Feb 17:07
· 32 commits to upm since this release

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 (without TArg) which is inherited by all events and is used internally to draw inspector GUIs.
  • DefaultScriptableEventEditor which targets BaseScriptableEvent. This addresses some issues when Odin Inspector is present in the project.
  • BaseScriptableEventListener (without TArg) which is now inherited by all listeners.
  • BaseScriptableEventListenerEditor which targets BaseScriptableEventListener. 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 implementing IScriptableEventListener<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 an is prefix.
  • Improved isDebug messages to be more consistent. Additionally, a listener Object 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.