게임/VRChat

VRChat OSC

모카쨩 2022. 2. 19. 20:39

 

 

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 키면 된다

 

 

 

 

 

 

 

 

 

 

관련링크

더보기