void Start()
    {
        avi = new AVIExport();

                #if UNITY_EDITOR || UNITY_STANDALONE
        fileName = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "/" + fileName;
                #endif
    }
    void OnEnable()
    {
        avi = new AVIExport();
        string dekstopPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop).Replace('\\', '/');

        iconAssetPath();
        cam  = Camera.main;
        path = dekstopPath + "/" + "Video.avi";
        EditorApplication.playModeStateChanged += PlayModeStateChanged;
    }