The referenced script on this Behaviour (Game Object ‘SceneIDMap’) is missing!

トラブルシューティング

Unity2019.3.4f1 HDRP

発生条件は定かではないです。Legacy pipelineのSceneをHDRPプロジェクトに持ってきて使っているためではないかと思います。(アセットストア由来

内容自体はよくあるやつなんですが、SceneIDMapというGameObject見当たらないんですよね

The referenced script on this Behaviour (Game Object 'SceneIDMap') is missing!
I get this warning every time I enter play mode in a certain scene: The referenced script on this Behaviour (Game Object 'SceneIDMap') is missing! I...

隠されてるみたいです

using UnityEditor;
using UnityEngine;

public static class DelSceneIDMap
    {
        [MenuItem("Tools/DelSceneIDMap")]
        public static void DelSceneIdMap()
        {
            var obj = GameObject.Find("SceneIDMap");
            if (obj != null)
            {
                DestroyImmediate(obj);
                Debug.Log("del");
            }
        }
    }

こんなコードで何回かボタン押して削除しました。

他にも.sceneファイルをテキストエディタで開いて直接削除するという人もいました。(さすがに怖い