Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - pat

Pages: [1]
1
NGUI 3 Support / Scroll view item alignment
« on: February 17, 2015, 07:55:13 AM »
Dear all,
perhaps a simple question but I don't find a solution.
I want to align all the items in this scroll view to the bottom:



As you can see, the "blue" and "glass" item are centered.
The scrollview is taken from the NGUI examples.

Greetings
Pat

2
Hi,

I am not talking about prefabs.
I have a gamestate object which is created at startup of the game (awake). This object is persistent through all scene changes and provides all settings (like volume, game designs) for all scenes.

In the old (free) version of NGUI I did the following:


The function is known and can be set in the editor (public void setSoundFXVolumeValue(float newSoundFXVolumeValue))
The gameobject not, so I wrote a little script (UISliderSetGamestatInstance) which assigns the gamestate object to the event rcv field at startup time.

I am wondering how to do this in the current version of NGUI

Pat.

3
Dear all,

for the OnValueChange field I can specify a gameobejct and chose a function in the editor.
But I need to assign the gameobject and function during runtime, because this instance is created then and not available in the editor. It stays persistent through all the scenes.

Any ideas ?

Greetings
Pat





Pages: [1]