Go to file
2023-09-24 13:30:20 -04:00
.github/ISSUE_TEMPLATE Update issue templates 2023-08-15 16:04:00 -04:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2023-08-15 16:06:45 -04:00
LICENSE Create LICENSE 2023-08-15 15:33:14 -04:00
OscAddress.cs some breaking changes, mostly style stuff 2023-08-17 14:19:26 -04:00
OscArgument.cs add license notices to files 2023-08-15 15:36:55 -04:00
OscBundle.cs add license notices to files 2023-08-15 15:36:55 -04:00
OscClient.cs create OscClient 2023-09-24 13:30:20 -04:00
OscMessage.cs some breaking changes, mostly style stuff 2023-08-17 14:19:26 -04:00
OscReceiver.cs create OscClient 2023-09-24 13:30:20 -04:00
OscSender.cs some breaking changes, mostly style stuff 2023-08-17 14:19:26 -04:00
README.md Update README.md 2023-08-15 15:33:49 -04:00

godotOscSharp

A simple library for OpenSoundControl sending and receiving over a network, for use in Godot.

It's been lightly tested in Godot 4.1, invoked from a scene's script written in C#.

How to Use

The easiest way to download this is to use one of the following commands from inside your project: git submodule add https://github.com/cass-dlcm/godotOscSharp.git or git submodule add git@github.com:cass-dlcm/godotOscSharp.git, depending on whether you connect to GitHub using HTTPS or SSH.

Then use:

cd godotOscSharp
git checkout tags/v0.1.0 -b v0.1.0-branch

It'll put the files inside a directory in your project named godotOscSharp, and checkout the version listed in the tag.

The constructor for the OscReceiver takes in an int port as a mandatory argument.

The constructor for the OscSender takes in an IPAddress and a int port as mandatory arguments.

Here's an example of how to create and use a receiver.

var receiver = new godotOscSharp.OscReceiver(9000);
receiver.MessageReceived += (sender, e) =>
{
    GD.Print($"Received a message from {e.IPAddress}:{e.Port}");
    GD.Print(e.Message.ToString());
    };
receiver.ErrorReceived += (sender, e) =>
{
    GD.Print($"Error: {e.ErrorMessage}");
};

License

This program is made available with the AGPL-3-or-later license set.