Unity ARKit Plugin 2.0 两个核心文件: /Assets/Plugins/iOS/UnityARKit/NativeInterface/ARSessionNative.mm /Assets/Plugins/iOS/UnityARKit/NativeInterface/UnityARSessionNativeInterface.cs 包含下面重要API: public void RunWithConfigAndOptions(ARKitWorldTackingSessionConfiguration config,UnityARSessionRunOption runOptions) public void RunWithConfig(ARKitWorldTackingSessionConfiguration config) public void Pause() public List HitTest(ARPoint point,ARHitTestResultType types) public ARTextureHandles GetARVideoTextureHandles() public float GetARAmbientIntensity() public int GetARTrackingQuality() 还有delegate: public delegate void ARFrameUpdate(UnityARCamera camera) public delegate void ARAnchorAdded(ARPlaneAnchor anchorData) public delegate void ARAnchorUpdated(ARPlaneAnchor anchorData) public delegate void ARAnchorRemoved(ARPlaneAnchor anchorData) public delegate void ARSessionFailed(string error) 一些回调: public static event ARFrameUpdate ARFrameUpdatedEvent; public static event ARAnchorAdded ARAnchorAddedEvent; public static event ARAnchorUpdated ARAnchorUpdatedEvent; public static event ARAnchorRemoved ARAnchorRemovedEvent; public static event ARAnchorAdded ARUserAnchorAddedEvent; public static event ARAnchorUpdated ARUserAnchorUpdatedEvent; public static event ARAnchorRemoved ARUserAnchorRemovedEvent; public static event ARSessionCallback ARSessionInterruptedEvent; public static event ARSessionCallback ARSessioninterruptionEndedEvent; public static event ARSessionTrackingChanged ARSessionTrackingChangedEvent;
- 1
- 2
- 3
- 4
- 5
- 6
- 粉丝: 0
- 资源: 3
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助