I am trying to re-create my game using the NGUI plugin for Unity and I like it a lot so far, but am in the mist on this one.
I have an UIPanel called games and I want programmatically to change it size but don't know how to get into the parameters...
I have tried like this, but with no luck:
GameObject.Find("Games").UIPanel.size.x = 300;
Also tried this, but with no luck:
GameObject.Find("Games").GetComponent("UIPanel").clipping.size.x = 300;
This doesn't work and I don't know how to do this... Any help is appreciated :-)