[SDK 3.8.1-beta.4] SendCustomNetworkEvent will break if the array an argument contains null
complete
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
StormRel
updated the status to
complete
This post was marked as
available in future release
StormRel
updated the status to
tracked