Esempio n. 1
0
            public override bool TryAddReferencePoint(
                Pose pose,
                out XRReferencePoint referencePoint)
            {
                var trackableId = NativeApi.UnityXRMock_attachReferencePoint(TrackableId.invalidId, pose);

                if (NativeApi.refPoints.TryGetValue(trackableId, out NativeApi.RefPointInfo refPointInfo))
                {
                    referencePoint = refPointInfo.ToXRReferencePoint(XRReferencePoint.GetDefault());
                    return(true);
                }

                referencePoint = default;
                return(false);
            }
 public static void Attach(TrackableId trackableId, Pose pose)
 {
     NativeApi.UnityXRMock_attachReferencePoint(trackableId, pose);
 }
        public static TrackableId Attach(Pose pose)
        {
            var trackableId = NativeApi.NewTrackableId();

            return(NativeApi.UnityXRMock_attachReferencePoint(trackableId, pose));
        }
Esempio n. 4
0
 static TrackableId AttachReferencePoint(XRReferencePointSubsystem referencePointSubsystem,
                                         TrackableId trackableId, Pose pose)
 {
     return(NativeApi.UnityXRMock_attachReferencePoint(trackableId, pose));
 }