unity arkit_适用于ARKit 2的Unity ARKit插件的新增功能

unity arkit

Apple announced exciting news for AR developers last week at WWDC, including ARKit 2. Unity has worked closely with Apple to allow our developers instant access to all of these new features with an update to Unity ARKit Plugin. In this blog, we’ll get into the technical details of ARKit 2’s new features and how to access them via the Unity ARKit Plugin. Please download the plugin from Bitbucket to follow along.

苹果上周在WWDC上为AR开发人员宣布了令人振奋的消息,其中包括ARKit2。Unity与Apple紧密合作,允许我们的开发人员通过Unity ARKit Plugin的更新立即访问所有这些新功能。 在此博客中,我们将介绍ARKit 2的新功能的技术细节以及如何通过Unity ARKit插件访问它们。 请从Bitbucket下载插件,然后继续。

ARWorldMap (ARWorldMap)

ARWorldMap is a useful new feature for ARKit 2, and allows for both persistence of AR experiences as well as shared multiplayer AR experiences. (Read more on ARWorldMap here.)

ARWorldMap是ARKit 2的一项有用的新功能,它既可以实现AR体验的持久性,也可以共享多人AR体验。 (在此处阅读有关ARWorldMap的更多信息 。)

See example in plugin: Examples/ARKit2.0/UnityARWorldMap/UnityARWorldMap.unity

请参阅插件中的 示例 Examples / ARKit2.0 / UnityARWorldMap / UnityARWorldMap.unity

Every session builds up an ARWorldMap as you move around and detect more feature points. You can get the current ARWorldMap from a session from C# and save it to somewhere on your Application.persisentDataPath.

当您四处走动并检测更多特征点时,每个会话都会构建一个ARWorldMap。 您可以从C#的会话中获取当前的ARWorldMap,并将其保存到Application.persisentDataPath上的某个位置。

You may also load a saved ARWorldMap from where you saved it. This allows virtual objects to persist in the same coordinate space even if you leave a session and come back to it later.

您也可以从保存它的位置加载保存的ARWorldMap。 这使虚拟对象可以保留在相同的坐标空间中,即使您离开会话并稍后再返回。

ARWorldMap can be serialized to a byte array and sent across to another device using WiFi, Bluetooth or some other means of sharing. It can also be deserialized on the other side and used to relocalize the other device to the same world mapping as the first device, so that you can have a shared multiplayer experience.

可以将ARWorldMap序列化为字节数组,然后使用WiFi,蓝牙或其他共享方式将其发送到另一台设备。 它也可以在另一端反序列化,并用于将另一台设备重新定位到与第一台设备相同的世界地图,从而可以共享多人游戏体验。

Once you have the ARWorldMap, either from loading it, or from mem

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值