Attach three UdonBehaviour to one GameObject.
<Scripts>(It was difficult to read the description here, so I am attaching it as an image.)
First, interact the GameObject.
<Result>
[Behavior on ClientSim]->Only TestA works.
[Behavior on VRChat]->TestB and TestC also work by SendCustomNetworkEvent of TestA.(Gif video)
If the behavior on VRChat is normal, please modify the behavior on ClientSim to do the same.
I think it would simplify some systems if a single SendCustomNetworkEvent could call functions contained in multiple UdonBehaviour.
■■■■■■■■■■■■■■■■■■
タイトル: ClientSimとVRChatの差異について(1つのGameObjectに複数のUdonBehaviour)(SendCustomNetworkEvent)
1つのGameObjectに、3つのUdonBehaviourをアタッチします。
Udonの内容は、ここに書くと読みにくかったので画像として添付します。
まず、GameObjectをインタラクトします。
(結果)
[ClientSim上での動作]→TestAのみ動作します。
[VRChat上での動作]→TestAのSendCustomNetworkEventにより、TestBおよびTestCも動作します。(添付のGifアニメ)
VRChat上での動作が正常であるならば、ClientSim上でも同様の動作を行うよう修正してください。
1度のSendCustomNetworkEventにより、複数のUdonBehaviourに含まれた関数を呼べるのであれば、いくつかのシステムが単純になると思います。
以上です。