文件名称:Unity ARKit Plugin 2019最新
文件大小:15.37MB
文件格式:ZIP
更新时间:2022-02-05 03:48:26
Unity ARKit Unity ARKit
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;