资源简介
ARWorldMap是ARKit 2中一个非常实用的新功能,它能够实现持续性AR体验和共享式多人AR体验。
请在Unity ARKit插件目录下查看示例:Examples/ARKit2.0/UnityARWorldMap/UnityARWorldMap.unity
每个会话都会随着操作者四处移动并检测更多特征点时构建一个ARWorldMap。你可以通过C#从一个会话中获取当前ARWorldMap,将它保存到你的Application.persisentDataPath中。
你也可以在保存的位置载入一个已保存的ARWorldMap。这样即使你离开会话后再回来,虚拟对象仍会在相同的坐标空间出现。
ARWorldMap可以被序列化为一个字节数组,并使用WiFi、蓝牙或其它分享方式发送到另一个设备上。另一方面,它也能被反序列化,用来将其它设备重定位到与第一个设备相同的世界坐标映射,从而得到共享的多人游戏体验。
当拥有ARWorldMap后,不管是通过载入得到、还是从内存中获取、亦或是从其它设备接收,你的设备都能将其设为配置中的一个参数,然后使用该配置重置ARSession,从而共享坐标系统信息。
这样做会重置会话,并且随着你四处移动,应用会尝试将ARWorldMap中的特征点与你环境中所检测到的特征点相互匹配。当它们成功匹配后,会话将重定位你的设备坐标,将其与ARWorldMap中所保存的坐标匹配。
代码片段和文件信息
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// Holds settings that are used to configure the Unity ARKit Plugin.
///
[CreateAssetMenu(fileName = “ARKitSettings“ menuName = “UnityARKitPlugin/Settings“ order = 1)]
public class UnityARKitPluginSettings : scriptableobject {
///
/// Toggles whether Facetracking for iPhone X (and later) is used. If enabled provide a Privacy Policy for submission to AppStore.
///
[Tooltip(“Toggles whether Facetracking for iPhone X (and later) is used. If enabled provide a Privacy Policy for submission to AppStore.“)]
public bool m_ARKitUsesFacetracking = false;
///
/// Toggles whether ARKit is required for this app: will make app only downloadable by devices with ARKit support if enabled.
///
[Tooltip(“Toggles whether ARKit is required for this app: will make app only downloadable by devices with ARKit support if enabled.“)]
public bool AppRequiresARKit = false;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 176 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\.hg_archival.txt
文件 79 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\.hgignore
文件 480 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\.hgtags
文件 191 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin.me
文件 191 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote.me
文件 3307 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKITREMOTE.txt
文件 177 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKITREMOTE.txt.me
文件 6316 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKitFaceTrackingRemoteConnection.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKitFaceTrackingRemoteConnection.cs.me
文件 6517 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKitRemoteConnection.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKitRemoteConnection.cs.me
文件 1613 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKitRemoteConnection.prefab
文件 209 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ARKitRemoteConnection.prefab.me
文件 1652 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Compression
文件 284 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Compression
文件 5362 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ConnectToEditor.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ConnectToEditor.cs.me
文件 1493 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ConnectionMessageIds.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ConnectionMessageIds.cs.me
文件 1739 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorARFaceAnchor.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorARFaceAnchor.cs.me
文件 1827 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorARPlaneAnchor.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorARPlaneAnchor.cs.me
文件 1261 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorHitTest.cs
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorHitTest.cs.me
文件 16886 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorTestScene.unity
文件 174 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\EditorTestScene.unity.me
文件 1118 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ob
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\ob
文件 20755 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Serializableob
文件 262 2018-10-09 19:03 Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Serializableob
............此处省略513个文件信息
相关资源
- Learning Robotic Process Automation
- asp.net 客户关系管理系统完整源码.r
- CreatePDF.rar
- ClearCanvas开源PACS系统C#
- Learning ASP.NET Core 2.0
- WPF C1Chart Demo
- 拍拍贷数据资源,风控算法大赛的数
- CefSharp.x86.84.4.1 支持Mp4
- CefSharp63 WPF 支持mp3、mp4、flansh、anyc
- VLCTest.rar
- C#微信公众平台开发源码.rar
- ArcGIS Engine地理信息系统开发从入门到
- CefSharp V63 支持MP4 winform版
- C#WinForm中CefSharp.WinformVS2010、.net4.0
- 使用C#开发搜索引擎(罗刚)_(0601)
- Winform中使用CefSharp和js互相调用方法
- CefSharp V63 demo
- winform插件cefsharp65最新版完美demo,完
-
Databa
se2Sharp代码生成工具.rar - CSharpGL.zip
- ArcGIS Engine开发从入门到精通 邱洪钢等
- Visual C# 2017 从入门到精通 英文版 第
- ASP.NET+SQL Server美食网站源码.rar
- C#+Oracle学生信息管理系统.rar
- C#基于MVC+EasyUI+ECharts后台管理系统完整
- wpf编程宝典完整PDF版 part2
- ASP.NET+SQL Server 农产品溯源系统源码
- ReadShapeFile_test.rar
- ASP.NET+SQL Server勤工助学系统的设计与
- Visual C#2005 +Access 数据库开发经典案例
评论
共有 条评论