Need help with UnityOSC?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jorgegarcia
472 Stars 124 Forks 67 Commits 6 Opened issues

Description

Open Sound Control (OSC) C# classes interface for the Unity3d game engine

Services available

!
?

Need anything else?

Contributors list

# 188,948
C#
Unity
27 commits
# 92,675
C++
emscrip...
osx
openfra...
10 commits
# 340,267
C++
C
Unity
4 commits
# 208,462
puredat...
C
C++
python2...
2 commits
# 384,203
C
C#
Unity
Shell
2 commits
# 175,271
Unity
C
vr
PHP
2 commits
# 14,570
pytorch
MATLAB
cpp11
nips
1 commit

UnityOSC v1.2.

Open Sound Control classes and API for the Unity 3d game engine

Based on Bespoke Open Sound Control Library by Paul Varcholik ([email protected].org). Licensed under MIT license.

THIS REPOSITORY AND PROJECT IS NO LONGER SUPPORTED OR MAINTAINED. After 10 years, I've decided not to continue with its development

Please consider the following alternatives (more modern and better) for using OSC in Unity:

How to use UnityOSC

Install

Copy the src/Editor folder contents to the corresponding Editor/ folder of your Unity project. The rest can go to your e.g. Assets/ folder of the same project.

Usage

There are two different approaches to use the plugin:

OSCHandler

The first and original approach works by modifying and initializing the

OSCHandler
. It is a Singleton handling your client & server connections and sending & receiving OSC data. Additionally, all incoming and outgoing messages are logged and can be viewed in an Editor Window.

Check the documentation below for more detailed instructions.

OSCReceiver

The second approach is a simple

OSCReceiver
which only supports receiving OSC data but with the benefits of reduced complexity and a thread-safe
OSCMessage
queue.

After opening a server connection by

OSCReceiver.Open(int port)
you can easily receive new OSCMessages via
OSCReceiver.getNextMessage()
. Always make sure there are OSCMessages available by using
OSCReceiver.hasWaitingMessages()
before trying to receive new ones.

Documentation and examples of usage

docs/doxygen/html/index.html

docs/UnityOSC_manual.pdf

docs/UnityOSC & TouchOSC Integration.pdf

Please head to the tests/ folder for examples of usage and a TouchOSC test Unity project.

TODO

07.11 Change string concatenations to C# string builders.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.