using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEngine.SceneManagement; using System; using System.IO; using System.Runtime.InteropServices; public class GridEditor : EditorWindow { public…