Search Unity

Dynamically Load Assets from Web at Runtime

Discussion in 'Scripting' started by heavy, Sep 17, 2012.

  1. heavy

    heavy

    Joined:
    Jul 20, 2011
    Posts:
    43
    Hi -

    I'm looking to dynamically load an image (jpg) as a texture to a game object (plane) in Unity at runtime from the web for an augmented reality application. It looks like WWW.LoadImageIntoTexture is the best way to go as we need to pull the images (jpgs) from our own web server (not the Unity web server).

    So, my questions are:

    1) Is it possible to dynamically load images at runtime (from our own web server) in a mobile device app (android and iOS)?

    2) If so, is WWW.LoadImageIntoTexture the best way to go?

    3) If so, is there a good tutorial on how to use the WWW.LoadImageIntoTexture?

    Many thx all.