Bot releases are hidden (Show)
This release tidies up this package, so it is consistent with other packages published by CHARK. Additionally, this release includes a set of breaking changes which will affect you if you're upgrading from previous versions.
BaseScriptableEvent
to ScriptableEvent
.BaseScriptableEventListener
to ScriptableEventListener
.BaseScriptableEventEditor
to ScriptableEventEditor
.BaseScriptableEventListenerEditor
to ScriptableEventListenerEditor
.BaseScriptableEvent
and ScriptableEvent
implementations to use sealed
keyword to prevent inheriting built-in event and listener implementations.CHARK.
prefix.CHARK/
prefix.CHARK.
(instead of Chark.
) prefix in their names.sealed
and internal
keywords instead of just public
.Published by Edvinas01 about 2 years ago
Multi events.
BaseScriptableEventListener<TArg>
now supports multiple events. This should be a non-breaking change. Migration from scriptableEvent
to a list of scriptableEvents
is done via ISerializationCallbackReceiver
which is implemented in BaseScriptableEventListener<TArg>
.Published by Edvinas01 over 2 years ago
Quality of life improvements.
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.Action<TArg>
listeners. This means that regular methods can now be used as listeners without the need of implementing IScriptableEventListener<TArg>
.#if ODIN_INSPECTOR
.ScriptableEventConstants
to define their menu order.lockDescription
is no longer serialized as its only useful during edit mode.bool
properties now have an is
prefix.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.description
is being drawn.Published by Edvinas01 over 3 years ago
This release contains major breaking changes and migrates from 2019 (LTS) to 2020 (LTS) in order to utilize generics.
BaseScriptableEventEditor
by default applies to all BaseScriptableEvent<T>
assets. BaseScriptableEventEditor<T>
(with a generic type) should be used only if Raise
button functionality is required.IScriptableEvent
assets).Collision*
types) for long
, double
, Quaternion
, Collider
, Collider2D
, Collision
, Collision2D
types.BaseScriptableEvent<T>
methods apart from Raise
were renamed to have a *Listener
suffix.BaseScriptableEvent<T>
field instead of a concrete implementation. The additional argument for the event type as well as the UnityEvent
type is no longer required.ScriptableEvents.Events
namespace to avoid clashing with Unity namespaces.ScriptableEvents.Listeners
namespace to avoid clashing with Unity namespaces.trace
logging will provide more information.IScriptableEvent
interface as it had no use and only added boilerplate.Listeners
property from BaseScriptableEvent<T>
.UnityEvent
implementations.BaseScriptableEvent<T>
.Published by Edvinas01 over 3 years ago
Published by Edvinas01 over 3 years ago
Initial release, here we list changes made after moving away from Unity Scriptable Objects.
*GameEvent
-> *ScriptableEvent
.master
and manually on upm
branches.