VRChat OSC
OSC는 Open Sound Controll의 약자이다
https://github.com/stella3d/OscCore/releases
Releases · stella3d/OscCore
A performance-oriented OSC library for Unity. Contribute to stella3d/OscCore development by creating an account on GitHub.
github.com
해당 패키지를 유니티에 푼다
빈오브젝트를 만들어서 다음과 같이 컴포넌트를 배치한다
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ManualControl : MonoBehaviour
{
public int emote = 0;
[Range(0,1)]
public float colorCloth = 0;
[Range(0, 1)]
public float colorHair = 0;
}
맨 아래 ManualControl의 샘플코드
위처럼 할당하고 수정하면 알아서 적용이 된다
그리고 인게임 내에서 OSC 키면 된다
끝
관련링크
https://hello.vrchat.com/blog/vrchat-osc-for-avatars
VRChat OSC for Avatars — VRChat
Our latest Open Beta update includes a long-awaited feature— Avatar OSC!
hello.vrchat.com
https://github.com/vrchat/osccore/tree/all-in-one
GitHub - vrchat/OscCore: A performance-oriented OSC library for Unity
A performance-oriented OSC library for Unity. Contribute to vrchat/OscCore development by creating an account on GitHub.
github.com
https://docs.vrchat.com/v2022.1.1/docs/osc-as-input-controller
OSC as Input Controller
OSC as Input Controller We support a lot of different controllers in VRChat - keyboard + mouse, gamepad, a plethora of VR trackers, etc. We're opening up that further by enabling you to control most of the inputs over OSC as well! With this, you could crea
docs.vrchat.com