change the sprite

I have a URL to an image. How can I change the sprite of a gameobject to the image that is on the URL? Thanks

You can load the image as a Texture2D with Unity - Scripting API: WWW.LoadImageIntoTexture

Then after that, you need to change the Texture2D into a sprite using

After that you can just use this newly created Sprite as any other Sprite, e.g. assigning it to the GameObjects SpriteRenderer.