Skip to content

Primitive ScriptableObject event system

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

batuberksahin/so_events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScriptableObject Event System

Primitive ScriptableObject event system for handling events in easy way with UnityEvents.

Install

Add this line to your manifest.json at Packages/ folder in your project.

"com.batuberksahin.soevents": "https://github.com/batuberksahin/so_events.git"

How to use

SO_events package contains several types of events. For example, Integer Event takes an integer as a parameter.

These are

  • String
  • Float
  • Integer
  • GameObject
  • Transform
  • Vector2
  • Vector3

You can add events from create tab in Assets window.

Event Types

Example Events


Also there are equivalent event listeners in the package, so you can add UnityEvents to your custom events. You can add Event Listeners to an object from Add Component/Listeners tab.

Event Listener Components


Example Usage of Custom Events

enter image description here

Trigger this event;

public class GameManager : MonoBehaviour {
	public IntGameEvent onGameOpen;  

	private void Start()  
	{  
		onGameOpen.Raise(0);  
	}
}

LICENSE

MIT

About

Primitive ScriptableObject event system

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages