arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.collab-proxy@ab839cc7d2ad/Editor/AssetsUtils/RepaintEditor.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02:00

42 lines
985 B
C#

using UnityEditor;
using UnityEngine;
using Unity.PlasticSCM.Editor.UI;
namespace Unity.PlasticSCM.Editor.AssetUtils
{
internal static class RepaintEditor
{
internal static void InspectorWindow()
{
UnityEditor.Editor[] editors =
Resources.FindObjectsOfTypeAll<UnityEditor.Editor>();
foreach (UnityEditor.Editor editor in editors)
editor.Repaint();
}
internal static void ProjectWindow()
{
EditorWindow projectWindow = FindEditorWindow.ProjectWindow();
if (projectWindow == null)
return;
projectWindow.Repaint();
}
internal static void HierarchyWindow()
{
EditorApplication.RepaintHierarchyWindow();
}
internal static void AllWindowsWithOverlays()
{
InspectorWindow();
ProjectWindow();
HierarchyWindow();
}
}
}