public static void ImplicitTest() { XRHumanBodyA a = new XRHumanBodyA() { trackableId = new TrackableId(ulong.MaxValue - 1000, ulong.MaxValue / 4), pose = TestUtil.MockPose(3), estimatedHeightScaleFactor = 4, trackingState = TrackingState.Tracking, nativePtr = new IntPtr(8), }; XRHumanBodyB b = a; Assert.AreEqual(a.trackableId.subId1, b.trackableId.subId1); Assert.AreEqual(a.trackableId.subId2, b.trackableId.subId2); XRHumanBodyA c = b; Assert.AreEqual(a, c); }
/// <summary> /// Method to be implemented by the provider to query for the set of human body changes. /// </summary> /// <param name="defaultHumanBody">The default human body.</param> /// <param name="allocator">The memory allocator to use for the returns trackable changes.</param> /// <returns> /// The set of human body changes. /// </returns> /// <exception cref="System.NotSupportedException">Thrown for platforms not supporting human body pose /// estimation.</exception> public virtual TrackableChanges <XRHumanBody> GetChanges(XRHumanBody defaultHumanBody, Allocator allocator) { throw new NotSupportedException("Body pose estimation not supported by this implementation."); }