DrawOverlays() private static method

private static DrawOverlays ( Asset asset, Asset metaAsset, Rect itemRect ) : void
asset UnityEditor.VersionControl.Asset
metaAsset UnityEditor.VersionControl.Asset
itemRect UnityEngine.Rect
return void
Exemplo n.º 1
0
 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);
             }
         }
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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();
 }