UnityGame/Library/PackageCache/com.unity.inputsystem/InputSystem/Editor/Settings/InputSettingsBuildProvider.cs

25 lines
669 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
#if UNITY_EDITOR
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
namespace UnityEngine.InputSystem.Editor
{
internal class InputSettingsBuildProvider : IPreprocessBuildWithReport, IPostprocessBuildWithReport
{
private Object m_Asset;
public int callbackOrder => 0;
public void OnPreprocessBuild(BuildReport report)
{
m_Asset = BuildProviderHelpers.PreProcessSinglePreloadedAsset(InputSystem.settings);
}
public void OnPostprocessBuild(BuildReport report)
{
BuildProviderHelpers.PostProcessSinglePreloadedAsset(ref m_Asset);
}
}
}
#endif // UNITY_EDITOR