private static DrawOverlays ( |
||
asset | ||
metaAsset | ||
itemRect | ||
Результат | void |
public static void DrawOverlay(Asset asset, Asset metaAsset, Rect itemRect) { if (asset != null && metaAsset != null) { if (Event.current.type == EventType.Repaint) { string externalVersionControl = EditorSettings.externalVersionControl; if (!(externalVersionControl == ExternalVersionControl.Disabled) && !(externalVersionControl == ExternalVersionControl.AutoDetect) && !(externalVersionControl == ExternalVersionControl.Generic) && !(externalVersionControl == ExternalVersionControl.AssetServer)) { Overlay.DrawOverlays(asset, metaAsset, itemRect); } } } }
public static void DrawOverlay(Asset asset, Asset metaAsset, Rect itemRect) { if (asset == null || metaAsset == null || Event.current.type != EventType.Repaint) { return; } string externalVersionControl = EditorSettings.externalVersionControl; if (externalVersionControl == ExternalVersionControl.Disabled || externalVersionControl == ExternalVersionControl.AutoDetect || (externalVersionControl == ExternalVersionControl.Generic || externalVersionControl == ExternalVersionControl.AssetServer)) { return; } Overlay.DrawOverlays(asset, metaAsset, itemRect); }
public static void DrawOverlay(Asset asset, Rect itemRect) { if (asset == null) { return; } if (Event.current.type != EventType.Repaint) { return; } Overlay.m_Asset = asset; Overlay.m_ItemRect = itemRect; Overlay.m_IconPrefix = EditorSettings.externalVersionControl; if (Overlay.m_IconPrefix == ExternalVersionControl.Disabled || Overlay.m_IconPrefix == ExternalVersionControl.AutoDetect || Overlay.m_IconPrefix == ExternalVersionControl.Generic || Overlay.m_IconPrefix == ExternalVersionControl.AssetServer) { return; } Overlay.DrawOverlays(); }