Hello.
I'm making Inventory system using NGUI 3 and Unity 5.
When player select the item on the field, Item slot image will change to Item image.
I'm using ..GetComponent<UISprite>().spriteName = "ItemImage".
It's works well.
But problem is changed sprite image is reset.. when Close and re open Inventory UI.
I used .SetActive(true) and SetActive(false) for showing and hiding InventoryUI.
Is there someone how I can solve this problem?