[SDK 3.8.1-beta.4] SendCustomNetworkEvent will break if the array an argument contains null
available in future release
ikuko
If you define code like the following, an exception will occur when you run it.
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public sealed class Demo : UdonSharpBehaviour {
private void Start() {
S();
}
public void S() {
var arr = new string[1];
arr[0] = null;
SendCustomNetworkEvent(NetworkEventTarget.All, nameof(R), arr);
}
[NetworkCallable]
public void R(string[] arr) {
}
}
The null type is not included in the types that can be synchronized.
Is this by design?
Log In
This post was marked as
available in future release
StormRel
marked this post as
tracked