暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InputSettingsBuildProvider.cs 669B

123456789101112131415161718192021222324
  1. #if UNITY_EDITOR
  2. using UnityEditor.Build;
  3. using UnityEditor.Build.Reporting;
  4. namespace UnityEngine.InputSystem.Editor
  5. {
  6. internal class InputSettingsBuildProvider : IPreprocessBuildWithReport, IPostprocessBuildWithReport
  7. {
  8. private Object m_Asset;
  9. public int callbackOrder => 0;
  10. public void OnPreprocessBuild(BuildReport report)
  11. {
  12. m_Asset = BuildProviderHelpers.PreProcessSinglePreloadedAsset(InputSystem.settings);
  13. }
  14. public void OnPostprocessBuild(BuildReport report)
  15. {
  16. BuildProviderHelpers.PostProcessSinglePreloadedAsset(ref m_Asset);
  17. }
  18. }
  19. }
  20. #endif // UNITY_EDITOR