123456789101112131415161718192021 |
- // Copyright (c) 2025 TerraByte Inc.
- //
- // This script hooks into Unity's asset pipeline to automatically
- // trigger a refresh of the Better Git window when assets change.
- using UnityEditor;
- namespace Terra.Arbitrator.GUI
- {
- public class GitAssetPostprocessor : AssetPostprocessor
- {
- private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____)
- {
- var window = EditorWindow.GetWindow<ArbitratorWindow>(false, null, false);
- if (window != null)
- {
- window.TriggerAutoRefresh();
- }
- }
- }
- }
|