Ext Editor OSC by Iam1337 - 5

ToolsExtensions

OSC extension for Unity Editor based on extOSC.

Unity 2017.1.4f1MIT LicenseUpdated 140 days agoCreated on March 13th, 2018
Go to source

extEditorOSC - Open Sound Control Protocol for Unity Editor

Created by V. Sigalkin (ext)

What Is extEditorOSC?

This asset allows you to use all features of extOSC directly into the Unity Editor. To create your own OSC Editor Component, you only need to create a subclass from “OSCEditorReceiverComponent” or the “OSCEditorTransmitterComponent”, and implement all the functions what you need.

This project require: extOSC asset.

Release Notes:

You can read release notes in versions.txt file.

Examples:

Custom OSC Editor Receiver Component
This example is implemented in a file: OSCEditorReceiverComponentExample.cs

[OSCEditorComponent("Examples", "Example Receiver Component")]
public class OSCEditorReceiverComponentExample : OSCEditorReceiverComponent
{
	#region Protected Methods

	protected override void PopulateBinds(List<IOSCBind> binds)
	{
		binds.Add(new OSCBind("/editor/example", MessageReceive));
	}

	#endregion

	#region Private Methods

	private void MessageReceive(OSCMessage message)
	{
		Debug.LogFormat("Received message: {0}", message);
	}

	#endregion
}

Custom OSC Editor Transmitter Component
This example is implemented in a file: OSCEditorTransmitterComponentExample.cs

[OSCEditorComponent("Examples", "Example Transmitter Component")]
public class OSCEditorTransmitterComponentExample : OSCEditorTransmitterComponent
{
	#region Protected Methods

	protected override void Update()
	{
		var message = new OSCMessage("/editor/example");
		message.AddValue(OSCValue.String("Editor message!"));

		Send(message);
	}

	#endregion
}

Installation:

  1. Copy extOSC in your project.
  2. Copy the Assets/extEditorOSC folder into your Assets directory within your Unity project.

Screenshots

Author Contacts:

> telegram.me/iam1337
> ext@iron-wall.org

License

This project is under the MIT License.

Show all projects by Iam1337