Пример #1
0
 static void RebuildImage(SpriteAtlas spriteAtlas)
 {
     for (var i = m_TrackedTexturelessImages.Count - 1; i >= 0; i--)
     {
         var g = m_TrackedTexturelessImages[i];
         if (spriteAtlas.CanBindTo(g.activeSprite))
         {
             g.SetAllDirty();
             m_TrackedTexturelessImages.RemoveAt(i);
         }
     }
 }
Пример #2
0
 private static void RebuildImage(SpriteAtlas spriteAtlas)
 {
     for (int i = m_TrackedTexturelessImages.Count - 1; i >= 0; i--)
     {
         SlicedFilledImage image = m_TrackedTexturelessImages[i];
         if (spriteAtlas.CanBindTo(image.activeSprite))
         {
             image.SetAllDirty();
             m_TrackedTexturelessImages.RemoveAt(i);
         }
     }
 }