/// <summary> /// Release this instance from both the managed and unmanaged side. /// </summary> public void Release() { var skeleton = NativeHandle?.GetISkeletonAnim(); if (skeleton != null) { if (Enum.GetValues(typeof(EMotionParamID)) is int[] values) { foreach (var value in values) { skeleton.SetDesiredMotionParam((EMotionParamID)value, 0, 0); } } } NativeHandle?.Dispose(); // TODO Set self to disposed. }