浏览代码

Use new API

/3.1
Tim Mowrer 6 年前
当前提交
a37cda5b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/Scenes/ARCollaborationData/CollaborativeSession.cs

2
Assets/Scenes/ARCollaborationData/CollaborativeSession.cs


continue;
using (var serializedData = collaborationData.ToSerialized())
using (var data = new NSData(serializedData.bytes, false))
using (var data = NSData.CreateWithBytesNoCopy(serializedData.bytes))
{
m_MCSession.SendToAllPeers(data, MCSessionSendDataMode.Reliable);
Logger.Log($"Sent {data.Length} bytes of collaboration data.");

正在加载...
取消
保存