<linker>
  <!-- Only preserve the optional UI module when the host uses the new Input System. -->
  <assembly fullname="Unity.InputSystem" ignoreIfMissing="1">
    <type fullname="UnityEngine.InputSystem.UI.InputSystemUIInputModule" preserve="all" />
  </assembly>
</linker>
