Hey guys. I need to remove/add some files inside unity asset folders but for seeing the changes I need to click on Unity Editor to see changes and import those changes inside Unity Editor!

For example I want to send a texture to folder A inside asset folder and unity import that texture Instantly without clicking on the editor.

Okay, I solved this.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;


[InitializeOnLoad]
public class MyEditor : Editor
{
    static MyEditor()
    {
        EditorApplication.update += Update;
       
    }
    static void Update()
    {
       
        AssetDatabase.Refresh();
        Debug.Log("Updating");
    }

}