コード例 #1
0
ファイル: Session.cs プロジェクト: ucreates/unity_arcore
        public static Anchor CreateAnchor(Pose pose, Trackable trackable = null)
        {
            var nativeSession = LifecycleManager.Instance.NativeSession;

            if (nativeSession == null)
            {
                return(null);
            }
            if (trackable == null)
            {
                return(nativeSession.SessionApi.CreateAnchor(pose));
            }
            else
            {
                return(trackable.CreateAnchor(pose));
            }
        }
コード例 #2
0
ファイル: Frame.cs プロジェクト: adem-altan/unity-tictactoe
 internal static bool Raycast(float x, float y, TrackableHitFlags raycastFilter, out Trackable hit)
 {
     throw new NotImplementedException();
 }