You can store the child's global rotation into a temporary variable.
Quaternion childRotation = child.rotation;
parent.localRotation = newParentOrientation;
child.rotation = childRotation;
↧