Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: CazicThule on January 15, 2013, 06:13:48 PM

Title: Control NGUI programatically
Post by: CazicThule on January 15, 2013, 06:13:48 PM
Is it possible to control NGUI programatically? For example, I want to make an inventory system. Obviously, the sprites shown would need to be dynamic based upon what the player has in their inventory. Is this possible?
Title: Re: Control NGUI programatically
Post by: dlewis on January 15, 2013, 06:45:21 PM
Yep.

All you will need is access to the UISprite component and you can change the image by going mySprite.spriteName = "nameOfNewSprite";