private void OnFileChanged(object sender, FileSystemEventArgs e) { string path = Path.GetFileNameWithoutExtension(e.FullPath); lock (changedShaders) { changedShaders.Add(path); } DualityApp.DisposeLater(new ActionDisposable(ReloadChangedShaders)); }
public void DispatchToMainThread(Action action) { DualityApp.DisposeLater(new ActionDisposable(action)); }
/// <summary> /// Schedules this object for disposal at the end of the current update cycle. /// </summary> /// <param name="obj"></param> public static void DisposeLater(this IManageableObject obj) { DualityApp.DisposeLater(obj); }