# Why is my custom Texture2D blurry?

((SpriteRenderer)renderer).sprite = Sprite.Create(request.texture,
new Rect(0,0,100,100));


My sprite looks fine.

Now, let's be a bit redundant and create a Texture2D out of the bytes from the download:

Texture2D t = new Texture2D(100,100);
((SpriteRenderer)renderer).sprite = Sprite.Create(t, new Rect(0,0,t.width,t.height));


Technically, this should produce something identical to the above snippet. However, the sprite is blurry (as in, low quality).

I suppose it is when calling LoadImage. What may be causing this?

• I know that textures loaded in the editor can be blurry if MipMapping is on. It should be OFF for 2d textures. Not sure how that relates to loaded from code.
t.filterMode = FilterMode.Point;

• Changing the filter mode worked, although it was Trilinear the one yielding the best results (not sure why). Sep 17, 2014 at 4:45