• 大小: 15.36MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-26
  • 语言: C#
  • 标签: arkit2.0  ar  arkit  unity  ios  

资源简介

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.meta
     文件         191  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote.meta
     文件        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.meta
     文件        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.meta
     文件        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.meta
     文件        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.meta
     文件        1652  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Compressionhelper.cs
     文件         284  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Compressionhelper.cs.meta
     文件        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.meta
     文件        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.meta
     文件        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.meta
     文件        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.meta
     文件        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.meta
     文件       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.meta
     文件        1118  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\objectSerializationExtension.cs
     文件         262  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\objectSerializationExtension.cs.meta
     文件       20755  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Serializableobjects.cs
     文件         262  2018-10-09 19:03  Unity-Technologies-unity-arkit-plugin-b3de628acfac\Assets\UnityARKitPlugin\ARKitRemote\Serializableobjects.cs.meta
............此处省略513个文件信息

评论

共有 条评论