This isn't NGUI-related. Some reference being set or not is either Unity, or -- most likely -- just what you're doing. If it's there in inspector but not there when you play, the most likely candidate is you trying to reference a value outside of the prefab the script is on, which isn't going to work. Look closer at what you're doing.