[SDK 3.8.1-beta.2] Add SendCustomNetworkEventDelayedSeconds
called_D
SendCustomNetworkEvent に引数が追加され、SendCustomEvent は変更されませんでした。引数付きの SendCustomEvent を使いたい場合は代わりに NetworkEventTarget.Self を付けて SendCustomNetworkEvent を使うように、という方針なのだと考えます。
このとき、現在の SendCustomEventDelayedSeconds に対応する引数付きの呼び出しを考えると SendCustomNetworkEventDelayedSeconds がありません。これをユーザー UdonSharp コードで実装しようとすると煩雑になるので公式で実装してほしいです。
Log In
called_D
(machine translate)
There is no SendCustomNetworkEventDelayedSeconds when consider calling with arguments corresponding to the SendCustomEventDelayedSeconds. It would be complicated to implement this in user UdonSharp code, so I would like to see this implemented officially.
(SendCustomNetworkEvent has an argument added, while SendCustomEvent remains unchanged. I assume the policy is that if we want to use SendCustomEvent with arguments, use SendCustomNetworkEvent with NetworkEventTarget.Self instead.)
called_D
(machine translation) For example, suppose a simple implementation of MySendCustomNetworkEventDelayed() created by declaring the variables delay, arg1, arg2, .... This cannot be created in user UdonSharp code because the arg1 to arg8 types are not handled correctly. Also, if a second call is made before the first call is executed, it will break.
例えば変数 delay, arg1, arg2, ... を宣言して作ったシンプルな実装の MySendCustomNetworkEventDelayed() を考える。これはユーザー UdonSharp コードでは arg1 ~ arg8 の型の取り扱いが正しく行えないため作れない。また、一回目の呼び出しが実行される前に2回目の呼び出しを行うと壊れてしまう