Serializable Events - edcasillas/unity-common-utils GitHub Wiki

Included with this package, you can find a set of commonly used serializable events so you don't need to define them in your code:

  • CommonUtils.GameObjectEvent: A serializable UnityEvent that receives a GameObject as argument.
  • CommonUtils.ColliderEvent: A serializable UnityEvent that receives a Collider as argument.
  • CommonUtils.BoolEvent: A serializable UnityEvent that receives a bool as argument.
  • CommonUtils.IntEvent: A serializable UnityEvent that receives an int as argument.
  • CommonUtils.FloatEvent: A serializable UnityEvent that receives a float as argument.
  • CommonUtils.StringEvent: A serializable UnityEvent that receives a string as argument.
  • CommonUtils.Vector3Event: A serializable UnityEvent that receives a Vector3 as argument.