unsafe public static void MemCpy(ref AnimationStream dst, ref AnimationStream src) { Assert.IsFalse(dst.IsNull || src.IsNull); Assert.AreEqual(dst.TranslationCount, src.TranslationCount); Assert.AreEqual(dst.RotationCount, src.RotationCount); Assert.AreEqual(dst.ScaleCount, src.ScaleCount); Assert.AreEqual(dst.FloatCount, src.FloatCount); Assert.AreEqual(dst.IntCount, src.IntCount); UnsafeUtility.MemCpy(dst.GetUnsafePtr(), src.GetUnsafePtr(), Unsafe.SizeOf <AnimatedData>() * src.Rig.Value.Bindings.StreamSize); }