Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How To load Image For web on Sprite2D NGUI?

Discussion in '2D' started by Green-Jungle, Jun 24, 2014.

  1. Green-Jungle

    Green-Jungle

    Joined:
    Jun 10, 2014
    Posts:
    79
    Hello everyone.I having a problem.I have a link below:
    http://ads.android.vn/wp-ads/getadsvn.php
    in this link have a field image format string : http://ads.android.vn/wp-content/uploads/2014/06/TvFbLogo1_5.png
    I converted string to texture and show image as renderer.material.mainTexture = texture;
    Now I want show Texture on sprite of NGUI.I want show a array image that convert to texture on array Sprite in ScrollView of NGUI? Please help me.I can't thinks way for this.thanks a lot.
    Sorry my english.
     
  2. cbothra

    cbothra

    Joined:
    Mar 14, 2014
    Posts:
    125
    Hi, I think it would be much complex to show the texture on sprite of NGUI. As you know sprite is picked from atlas, so at first the loaded image need to be added in the atlas and then assigned to the sprite object of NGUI. Better if you can do the same via texture only.
     
    Green-Jungle likes this.
  3. Green-Jungle

    Green-Jungle

    Joined:
    Jun 10, 2014
    Posts:
    79
    Thanks for your answer
     
  4. Dunkelheit

    Dunkelheit

    Joined:
    Sep 3, 2013
    Posts:
    81
    You should take a look at this intro tutorial.