Supress "Risk of unwanted modification" popup

Is there any way to stop unity from constantly showing a “Risk of unwanted modification” popups whenever I enter play mode? Is there some way to configure it to always ignore or always exit prefab mode?

(I can’t replace [ExecuteInEditMode] with [ExecuteAlways] because the warning is coming from Unity’s SpriteSkin component)

image

A bit late, but you can use this editor script to automatically exit prefab mode on play:

using UnityEditor;
using UnityEditor.SceneManagement;

    /// <summary>
    /// Automatically exits prefab mode when entering play mode to avoid "Risk of unwanted modifications" warning.
    /// </summary>
    [InitializeOnLoad]
    public static class AutoExitPrefabModeOnPlay
    {
        static AutoExitPrefabModeOnPlay()
        {
            EditorApplication.playModeStateChanged -= OnPlayModeStateChanged;
            EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
        }

        private static void OnPlayModeStateChanged(PlayModeStateChange state)
        {
            if (state != PlayModeStateChange.ExitingEditMode) return;
            if (PrefabStageUtility.GetCurrentPrefabStage() == null) return;
            StageUtility.GoToMainStage();
        }
    }