Publisher Two Cats Code - Haikun Huang
File size 2.76MB
Number of files 138
Latest version 1
Latest release date 2023-10-31 03:17:12
First release date 2023-10-31 03:17:12
Supported Unity versions 2018.4.2 or higher

Two Cats Code | Online Documentation | Discord | Unity Asset-Store


All AnyEvent 2 buyers can get a free downgrade to AnyEvent.


AnyEvent 2 is designed to be simple and integrated into any off-the-shelf project at minimal cost. We provide a set of supplementary components for Unity UI that extend the default UI events. Through the C# reflection mechanism, we have even designed a set of components to listen to the value change events of any member variables of any component and send related events. AnyEvent 2 supports custom extensions.


AnyEvent 2 suits all developers, including programmers, planners, and UI designers.


Features

  • Any object can be the target or/and invoker.
  • Centralization. No reference is needed between the listener and the invoker anymore—no delegate mechanism knowledge is required.
  • Channel. Use the text channel and/or asset channel to invoke an event. The event can be invoked as a global or a local (to target) event that carries data.
  • Supports event callback. You can use this mechanism to send a post-event to the invoker.
  • UI events supported. A set of complementary components to the original Unity UI event. No coding is required.
  • Transforms. It allows the transformation of the received data. Works well with the UI events.
  • Binding. Invokes an event when a variable changes and updates it when it receives an event without coding.
  • Zero learning cost.
  • Easy to incorporate into the current project.
  • Source code included.
  • All platforms are supported.

Quick Start

  • Register an event

AnyEvent.Channel("Channel Name").AddTarget(gameObject, MyMethod);

  • Invoke a to-target event

AnyEvent.Channel("Channel Name").Invoke(invokergGameObject, targetGameObject, obj);

  • Invoke a global event

AnyEvent.Channel("Channel Name").Invoke(invokergGameObject, obj);


Top Publisher Assets