VRChat World Udon KarmoTarget / 카모타겟
- Digital0 JPY

특정 플레이어를 버튼으로 선택해 해당 플레이어의 PlayerID를 싱크시키는 UI 인터페이스 프리팹. UI interface prefab that selects a specific player by button to sync that player's 'Player ID'.
How To Use
1. 유니티 패키지를 임포트합니다. 2. 프리팹 인스턴스를 배치합니다. (Karmotrine/KarmoPrefab/KarmoTarget) 3-UdonSharp. 다른 스크립트에서 프리팹 인스턴스의 KarmoTarget 스크립트를 참조하여 CurTargetPlayerID 변수에 접근 3-UdonGraph. 다른 우동그래프에서 프리팹 인스턴스의 KarmoTarget 스크립트를 UdonBehaviour로 참조하여 UdonBehaviour -> GetProgramVariable(curTargetPlayerID) -> ToInt32 노드를 통해 값 획득 1. Import the UnityPackage to Your VRC World Unity Project. 2. Create the Prefab Instance to Your Scene. (Karmotrine/KarmoPrefab/KarmoTarget) 3-UdonSharp. Access the 'CurTargetPlayerID' variable by referring to the KarmoTarget script in the prefab instance. 3-UdonGraph. Refer to the KarmoTarget script of the prefab instance as UdonBehaviour type variable and get the value through [UdonBehaviour] -> [GetProgramVariable]curTargetPlayerID) -> [ToInt] node.
More Infomation
'왁물원' 에 작성한 글도 참고해보세요 ! - https://cafe.naver.com/steamindiegame/8864741 제 개인 우동 라이브러리 `MUdons`를 바탕으로, 보다 개선된 `MTarget`을 참고해보세요 ! - https://github.com/Mascari4615/MUdons/tree/main/Packages/com.mascari4615.m-udons/Runtime/MTarget