Author Topic: How to update sprite pixel in runtime  (Read 2455 times)

Justion_Ko

  • Guest
How to update sprite pixel in runtime
« on: December 26, 2013, 09:42:25 PM »
I need to update the sprite pixel at runtime . Without NGUI, I can create a texture2D object ,and update its pixel data ,then assign it to a GUITexture.
Now i want the all UI stuffs to be done with NGUI, How can i do with it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to update sprite pixel in runtime
« Reply #1 on: December 27, 2013, 04:02:17 PM »
You should not be modifying atlas textures.

Feel free to modify the Texture2D exactly as you did before with GUITexture. Except this time you'll be using a UITexture to display them.