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 - BenChew

Pages: [1]
1
NGUI 3 Support / Re: Nguitools SoundVolume is constantly = 0
« on: March 23, 2015, 10:17:11 AM »
Okay, the problem doesn't occur anymore.
I turned my own sound playerprefs off and on again. The problem disappeared

Thanks!

2
NGUI 3 Support / Re: Nguitools SoundVolume is constantly = 0
« on: March 23, 2015, 10:09:59 AM »
PlayerPrefs's Sound is 0. Not sure why, as all my scripts doesn't set this playerprefs

Sorry, how do I Debug.Log it to see where it's called from?
gameObject.name seems to not be the solution, haha

3
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?


4
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!

5
NGUI 3 Support / Re: UITable Sorting Clarification
« on: December 18, 2013, 10:09:07 PM »
If I'm not mistaken, the pivot is where the arrows appear. They are all in its own center.

I'm using a table because the character is drag dropped into the square(and the other 2 items unhide), and then dragged to another square elsewhere, so I want it to be centered. Unless there is another tool that can achieve this.

6
NGUI 3 Support / Re: UITable Sorting Clarification
« on: December 18, 2013, 12:53:36 AM »
Sorry, I thought you didn't reply. Thanks for replying =D

And, it also seem that you might have not understood my question or you might have but changing the name did not solve it, so I'll just take some screens of the problem that I'm facing.

Here is an image before I enable the DarkBase and Label. The character sits well in the blue square.


This is an image after I enabled the other two, and now all three of them are off the center.



Any ideas? Thanks!

7
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?

8
Thank you very much!

9
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 ^^

10
NGUI 3 Support / Re: Drag and Drop together with UITable
« on: November 26, 2013, 06:53:03 AM »
oh.. didn't notice the new version.
Thanks!

11
NGUI 3 Support / Re: Drag and Dropping another Drag and Drop
« on: November 26, 2013, 04:41:15 AM »
lol... just read it as "Bringing a sprite into the game from the UI, and bring it back out again to the UI."
But, I've managed to deal with that just a few minutes ago by instantiating the new sprite under the same UI Root.

But I've ran into another problem, which is, by clicking and releasing the drag drop item without dragging it, its sprite depth does a -100. Spam clicking it means its depth will go into negative thousands. Is this a bug?

12
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]