All Projects → mob-sakai → UnityEventDrawerEx

mob-sakai / UnityEventDrawerEx

Licence: MIT license
This plugin extends the UnityEventDrawer to display runtime calls in the inspector.

Programming Languages

C#
18002 projects
shell
77523 projects

Projects that are alternatives of or similar to UnityEventDrawerEx

PrefabEditor
You can edit Prefab which could not be edited much unless you place it on Scene.
Stars: ✭ 23 (-59.65%)
Mutual labels:  unity-editor, editor-extension
hierarchy-icons
Unity extension to show component icons in the Hierarchy.
Stars: ✭ 47 (-17.54%)
Mutual labels:  unity-editor, editor-extension
Unity Editor Toolbox
Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.
Stars: ✭ 273 (+378.95%)
Mutual labels:  inspector, unity-editor
UnityGlobalTextSystem
Allow the user to 'change' the default font in Unity from "Arial" to a font of their liking.
Stars: ✭ 21 (-63.16%)
Mutual labels:  unity-editor
extensions
👅 Parse Haskell Language Extensions
Stars: ✭ 45 (-21.05%)
Mutual labels:  extensions
detect-features
Detect and report browser and hardware features.
Stars: ✭ 63 (+10.53%)
Mutual labels:  extensions
unity-scene-groups
Adds a scene group asset to Unity Engine that allows for seamless opening of multiple scenes at once.
Stars: ✭ 33 (-42.11%)
Mutual labels:  inspector
UGUI-Toolset
No description or website provided.
Stars: ✭ 14 (-75.44%)
Mutual labels:  unity-editor
transonic
🚀 Make your Python code fly at transonic speeds!
Stars: ✭ 93 (+63.16%)
Mutual labels:  extensions
InspectorClient
Inspector client
Stars: ✭ 13 (-77.19%)
Mutual labels:  inspector
vuln-headers-extension
Firefox extension which parses the headers of all the requests which are being flowing through your firefox browser to detect for vulnerabilities.
Stars: ✭ 55 (-3.51%)
Mutual labels:  extensions
Originer
🧳The package for Unity3d which makes it possible to automatically resolve UPM dependencies on projects located on Github
Stars: ✭ 31 (-45.61%)
Mutual labels:  editor-extension
ScriptableObjectVariant
Unity Odin editor helper which permits to set a "SOVariant" attribute to a ScriptableObject and override, or not, certain fields (similar to prefab variants but for scriptable objects).
Stars: ✭ 30 (-47.37%)
Mutual labels:  inspector
extensions-rig
A full development environment to build Twitch Extensions. Currently only supports panel extensions but video overlay coming soon.
Stars: ✭ 26 (-54.39%)
Mutual labels:  extensions
UniSymbol
【Unity】シンボルを簡単に定義できるエディタ拡張
Stars: ✭ 15 (-73.68%)
Mutual labels:  unity-editor
VCore
VCore is a Swift collection containing objects, functions, and extensions that I use for my projects
Stars: ✭ 32 (-43.86%)
Mutual labels:  extensions
docket-cache
A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.
Stars: ✭ 17 (-70.18%)
Mutual labels:  extensions
extensions-dependency-injection
Microsoft Extensions DependencyInjection for WCF, and asp.net classic projects
Stars: ✭ 18 (-68.42%)
Mutual labels:  extensions
prosemirror-dev-toolkit
Injectable developer tools for ProseMirror rich-text editors implemented in Svelte and TypeScript.
Stars: ✭ 44 (-22.81%)
Mutual labels:  inspector
Boundary
Boundary is a CSS+Javascript library for Chrome extension developers to easily create HTML elements that won’t affect or be affected by the current webpage’s CSS. Strongly recommended if you are considering adding a sticker, a sidebar or any overlay box using content script.
Stars: ✭ 59 (+3.51%)
Mutual labels:  extensions

UnityEventDrawerEx

image

This plugin extends the UnityEventDrawer to display runtime calls in the inspector.

<< Description | Download | Usage | Development Note >>

RELEASE NOTE





Description

What is runtime call?

Button.onClick and Toggle.OnChangeValue etc. are known as UnityEvent.
UnityEvent has two types of callbacks:

  • Persistent call
    • You can add callbacks from the inspector.
    • You can add callbacks from a script using UnityEventTools.AddPersistentListener.
    • It is Serialized.
    • It is displayed in the inspector.
      persistent
  • Runtime call
    • You can add a callback from a script using UnityEvent.AddListener.
    • It is not serialized.
    • It is not displayed in the inspector.
      runtime

Display your runtime call

This plugin extends UnityEventDrawer to display runtime calls in inspector.
If runtime call is an instance method, its target is also displayed.
This plugin supports all events that inherit UnityEvent<T0> - UnityEvent<T0, T1, T2, T3> as well as UnityEvent.
Also, when the Persistent call is empty, UnityEvent is displayed compactly in inspector.

public class TestBehavior : MonoBehaviour
{
	[System.Serializable] public class TransformUnityEvent : UnityEngine.Events.UnityEvent<Transform>{};

	[SerializeField] TransformUnityEvent onYourCustomEvent = new TransformUnityEvent();
	
	void OnEnable()
	{
		onYourCustomEvent.AddListener(TestTransform);
	}
	
	void TestTransform(Transform t)
	{
		Debug.Log("TestTransform has called : " + t);
	}
}

image

If you like a development style that heavily uses Runtime calls (MVP pattern, etc.), we recommend using this plugin!

Features

  • Displays runtime calls in inspector
  • Expands/collapses the runtime call view
  • Displays instance method, its target is also displayed
  • When the Persistent call is empty, displays it compactly
  • Supports pro skin
  • Supports all components as well as uGUI components such as Button and Toggle
  • Supports EventTrigger





Usage

  1. Download UnityEventDrawerEx.unitypackage from Releases.
  2. Import the package into your Unity project. Select Import Package > Custom Package from the Assets menu.
  3. Add a runtime call, such as Button.onClick.AddListener (method).
  4. Information about the runtime call is displayed in inspector.
  5. Enjoy!
Requirement
  • Unity 5.5+ (included Unity 2018.x)
  • No other SDK are required





Development Note





License

  • MIT
  • © UTJ/UCL

Author

mob-sakai

See Also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].