Example #1
0
        internal static Texture2D GetAtlasTexture(this Sprite sprite)
        {
            var texture = SpriteEditorExtension.GetActiveAtlasTexture(sprite);

            if (null == texture || !texture)
            {
                return(null);
            }
            return(texture.GetInstanceID() == sprite.texture.GetInstanceID() ? null : texture);
        }