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.


Topics - BenChew

Pages: [1]
1
NGUI 3 Support / Nguitools SoundVolume is constantly = 0
« on: March 23, 2015, 08:41:54 AM »
I have no idea why my soundvolume is constantly = 0
I've tried searching the project for "soundvolume" and have commented all of them except "soundvolume = 1". But the problem still persist after i print soundvolume the next line and got "0"

any chances of cameras or NGUI gameobjects affecting it that I might have mistakenly touched?


2
NGUI 3 Support / Overlapping scrollview
« on: June 23, 2014, 09:24:10 AM »
Hi, I'm trying to have two windows of character selection.

The player scrolls through the window to choose a character for himself and an opponent. The windows are kind of side by side.

Problem is that, I can only detect one scrollview and not the other.

Currently, I've tried hiding the colliders for characters outside of the window, doesn't work.

Any help? Thank you!

3
NGUI 3 Support / UITable Sorting Clarification
« on: December 11, 2013, 12:40:37 AM »
Hi, I'm trying to sort a GameObject in my UITable.

At first, it went well, the object snapped into the center when Played. Then, I added a Progress Bar to a Panel in the GameObject. This is where the GameObject snapped into another position that is totally not in the center of the UITable.

How does this sorting work? Or is there a miss that I should do when attaching other UI stuff as children?

4
Hey Aren.

As the topic states, I'm trying to pass on variables from a script in a Drag Drop item to its prefab, like HP and levels.

I'm not sure if this kind of thing is out of the way of your Support or not, so do tell if I'm in a wrong place. Thanks ^^

5
NGUI 3 Support / Drag and Drop together with UITable
« on: November 26, 2013, 01:49:08 AM »
Hi,

I've made my drag and drop drop another drag and drop panel and sprite onto the game. Reason is so that I could bring a sprite into the game, and bring it back out again.

Problem is after the drag and drop panel is dropped in the game, when I try to drag it back out again, it gives me this error

Quote
NullReferenceException: Object reference not set to an instance of an object
DragDropItem.OnDrag (Vector2 delta) (at Assets/NGUI/Examples/Scripts/Other/DragDropItem.cs:107)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)

and after that, it auto repositions my ingame panel(probably caused by UITable and the other children GameObject that I put my Colliders in, but I don't know how to fix this).

I've made the conditions of the drag and drop for both ingame and offgame panel/sprite the same, except that the ingame panel is outside the UI Root.
If I put the panel inside the UI Root, the above message doesn't appear, but the panel will continuously reposition itself each time I move it to anywhere in the screen that is not a Drag Drop Surface.

Do you know what I should've done? If you need any other info, please do tell. Thank you!

Pages: [1]