VRCOscLib 1.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package VRCOscLib --version 1.1.1
NuGet\Install-Package VRCOscLib -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VRCOscLib" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VRCOscLib --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VRCOscLib, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VRCOscLib as a Cake Addin
#addin nuget:?package=VRCOscLib&version=1.1.1
// Install VRCOscLib as a Cake Tool
#tool nuget:?package=VRCOscLib&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VRCOscLib
The OSC library for VRChat (.NET Standard)
VRCOscLib is now released!
How to Install
Download & import the .nupkg from the Releases page.
I can also download from NuGet Package Manager. See nuget.org for the NuGet package latest version.
Usage in code
About avatar parameters
If you want to control avatar parameters, use classes in BuildSoft.VRChat.Osc.Avatar
.
e.g.) Get and use avatar config model
using System;
using BuildSoft.VRChat.Osc.Avatar;
// get avatar config by avatar id.
var config = OscAvatarConfig.Create("avtr_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")!;
foreach (var parameter in config.Parameters.Items)
{
Console.WriteLine($"{parameter.Name}: " +
$"input {(parameter.Input != null ? "○" : "×")}, " +
$"output {(parameter.Output != null ? "○" : "×")}"
);
}
e.g.) Get current avatar config model
using System;
using BuildSoft.VRChat.Osc.Avatar;
var config = OscAvatarConfig.CreateAtCurrent();
if (config == null) {
Console.WriteLine("Failed to get the current avatar, Do \"Reset Avatar\" or start VRChat.");
}
// Wait until you can get an avatar config.
config = await OscAvatarConfig.WaitAndCreateAtCurrentAsync();
e.g.) Send avatar parameter
using BuildSoft.VRChat.Osc.Avatar;
var config = await OscAvatarConfig.WaitAndCreateAtCurrentAsync();
config.Parameters["IntParameterName"] = 1;
config.Parameters["FloatParameterName"] = 12.2f;
config.Parameters["BoolParameterName"] = true;
or
using BuildSoft.VRChat.Osc;
OscParameter.SendAvatarParameter("IntParameterName", 1);
OscParameter.SendAvatarParameter("FloatParameterName", 12.3f);
OscParameter.SendAvatarParameter("BoolParameterName", true);
e.g.) Get received avatar parameter
using System;
using System.Threading.Tasks;
using BuildSoft.VRChat.Osc.Avatar;
var config = await OscAvatarConfig.WaitAndCreateAtCurrentAsync();
await Task.Delay(1000);
Console.WriteLine($"parameterName = {config.Parameters["parameterName"]}");
About button input
If you want to use button input with OSC, use classes in BuildSoft.VRChat.Osc.Input
.
There are 2 kinds of input, OscAxisInput
can send a float value, and OscButtonInput
can send a boolean value, press or release.
e.g.) Send Input
using System.Threading.Tasks;
using BuildSoft.VRChat.Osc.Input;
OscAxisInput.LookVertical.Send(0.2f);
await Task.Delay(1000);
OscAxisInput.LookVertical.Send(0f);
OscButtonInput.Jump.Press();
await Task.Delay(1000);
OscButtonInput.Jump.Release();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- BuildSoft.OscCore (>= 1.0.5)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
- System.Collections.Immutable (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.4.3 | 744 | 12/20/2022 |
1.4.2 | 281 | 12/9/2022 |
1.4.1 | 290 | 12/4/2022 |
1.4.0 | 325 | 11/20/2022 |
1.3.3 | 299 | 11/18/2022 |
1.3.2 | 321 | 11/14/2022 |
1.3.1 | 297 | 11/8/2022 |
1.3.0 | 429 | 9/21/2022 |
1.2.1 | 468 | 8/3/2022 |
1.2.0 | 470 | 7/18/2022 |
1.1.4 | 446 | 6/10/2022 |
1.1.3 | 548 | 4/10/2022 |
1.1.2 | 439 | 3/20/2022 |
1.1.1 | 420 | 3/5/2022 |
1.1.0 | 395 | 2/28/2022 |
1.0.7 | 413 | 2/25/2022 |
1.0.6 | 387 | 2/25/2022 |
1.0.5 | 393 | 2/24/2022 |
1.0.4 | 428 | 2/23/2022 |
1.0.3 | 414 | 2/23/2022 |
1.0.2 | 398 | 2/22/2022 |
1.0.1 | 388 | 2/22/2022 |
1.0.0 | 414 | 2/21/2022 |