Exemplo n.º 1
0
 public void Apply(SoftStringMatcher match, AssetData data)
 {
     if (data.Texture != null)
     {
         _image.style.backgroundImage = data.Texture;
     }
     else
     {
         _image.style.backgroundImage = AssetDatabase.GetCachedIcon(data.Path) as Texture2D;
     }
     _name.SetText(data.DisplayName, match.FirstMatch(data.DisplayName));
     _path.SetText(data.Path, match.LastMatch(data.Path));
 }
Exemplo n.º 2
0
 public static void SetText(this SingleHighlightText h, string text, StringMatch match)
 {
     h.SetText(text, match.Start, match.Length);
 }