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

Pages: [1] 2
1
NGUI 3 Support / Does NGUI still support unity 4.7.0f1 or above ?
« on: January 12, 2016, 10:44:25 AM »
Does NGUI still support unity 4.7.0f1 or above?

I use NGUI 3.9.3 or 3.9.4b, it would show an error:

Assets/NGUI/Scripts/Interaction/UIPopupList.cs(1004,45): error CS1061: Type `UnityEngine.BoxCollider2D' does not contain a definition for `offset' and no extension method `offset' of type `UnityEngine.BoxCollider2D' could be found (are you missing a using directive or an assembly reference?)

If I use NGUI 3.9.6d, it would even unsuccessfully decompile the package.

2
NGUI 3 Support / UI with Tween Problems
« on: January 09, 2015, 08:28:24 AM »
Suppose I use some UI elements with anchors (or constrained), which means the transform of these UI elements would change base on some conditions.

So if I want to use Tween Scripts provided on NGUI with these UI elements, would it be the problems because I can't write the exact transform position on the inspector?

How should I suppose to do?

Sorry for my poor English! Thank you!

3
NGUI 3 Support / Some problems on making Portrait UI
« on: June 30, 2014, 05:16:22 AM »

If I want to make a game with UI that only on Portrait mode of android platform,

how to use NGUI to do a Portrait UI? What should I need to know such as the differs between making portrait UI and landscape UI?

Beside, I can not see the result of the Portrait mode easily in the editor because it also shows me the landscape view.

Thanks.

4
NGUI 3 Support / Do NGUI support swiping functions?
« on: June 24, 2014, 05:19:39 AM »
NGUI has OnClick(), OnHover()......, but how about Swiping ?

If I want use swiping on the user interface or any gameobjects, do NGUI support for this?

Thank you.

5
NGUI 3 Support / A bug in the Example DragDrop
« on: June 14, 2014, 05:28:04 AM »
  I want to tell the author that from the 3.6.3 version to now 3.6.4, there is still having some problems on Example 11 - Drag & Drop.
  Please check it out and fix them. Just at least try drag the items on the cubesurface and at least one problem would be found.
  Thank you!

6
How to click on NGUI UI but not trigger the events of the scene?

It is because I have some touch events on the gameobjects in the scene, if I click on NGUI, if would trigger the scene events too.

How to avoid it?

Thx.

7
NGUI 3 Support / OnClick issue
« on: May 25, 2014, 04:30:28 AM »
How can I do if I want the onclick function happen on the gameobjects,

which means that if I click on one gameobject, that do something.

How can I implement onclick function on this.

It is because I have tried to add UIcamera on Main Camera, add box collider with trigger on the gameobject and put a script that has OnClick function inside, but it does not work properly, it seems that only a few location I clicked on and so the onclick event begin.

8
NGUI 3 Support / Drag Drop item issue
« on: May 22, 2014, 02:08:18 AM »
Is it possible to restrict the user to drag some items on certain surface only?

For example, if I put one dragdrop surface on the ground and another one on the ceiling , I want to let the user only can put some chairs on the ground surface but only can put some lights on the ceiling surface. Is it possible? If possible, how to implement it?

Thx.

9
NGUI 3 Support / Tweening problems
« on: May 18, 2014, 02:47:25 AM »
I have a situation here:

I have a gameobject that has two tween alpha scripts attached. One will start automatically at start and the another will run after finishing the first tween alpha script. In order to do this, I want to set when the first tween alpha script finished and the another tween alpha script runs and so I do it at OnFinished. However, when I want to select the method, I just can find one tween alpha script and select the relative actions. So it won't works. It seems that it can not identify multiple but same tween script all attached in one gameobject. How can I do?

10
NGUI 3 Support / Question on PopUp List
« on: May 10, 2014, 08:46:04 AM »
Nearly I need to use popup list but I encounter some problems on using it.

1. How to listen the events of selecting one of the option in popup list? If I select one of them, then do something?

2. How to add and delete one option in runtime?

3. Can the default selection be null ?

Thanks for any kind of helps.

11
NGUI 3 Support / Will NGUI support Save & Load in GUI area?
« on: April 30, 2014, 08:50:44 AM »
Nearly I found a useful things for me to Save & Load is UnitySerializer. It provides some GUI for me to help me Save & Load the game.

However, I want to combine this function in my project that using NGUI because it looks really better than unity GUI.

Will it be supported?

Or creating a new system on NGUI for user to do the save & load function?

You could find this UnitySerializer in asset store and it is free of charge. Please take a look at it and thank you.

12
NGUI 3 Support / Dimension with UI and Icon blocked by finger
« on: March 26, 2014, 06:25:36 AM »
1. About the Dimension problem, it is realised that I cannot control the dimension of the UISprite and UITexture based on the screen resolution( Based on both width and height to decide the dimension). So they could be more clear on tablet and enough clear on mobile. Could it be done?

2. About the Icon blocked by finger : When I drag an item using my finger, it seems that the icon I am dragging is totally blocked by my finger and so I cannot see the icon clearly. I suggest putting the icon always above the finger position when dragging. Could it be done too?

3, I also suggest that when I drag the items on screen, if I cannot drop them on certain surface, some changes or notices would appear ,let say, a cross on the icon to remind the user not available to drop the items on that point. Could it be done as well?

Thanks for the help for above few things!

13
NGUI 3 Support / Drag and Drop objects probelms
« on: March 20, 2014, 10:31:38 PM »
How to solve a probelm that if I drag and drop item on the surface and avoid overlapping the other GameObjects ,or especially the walls and the other items dropped before, even that the gameobjects identified by myself that should not overlapping ?

Could this new functionality be updated and added into NGUI?

Also how it should be done?

Thanks!

14
NGUI 3 Support / NGUI Slider can not be controlled
« on: March 20, 2014, 07:50:32 AM »
I want to use the slider to control a varaible _Energy in script and this variable also self-reduce in Update function...
  1. void Update()
  2. {
  3.        _Energy -= 10* Time.deltaTime;
  4. }
  5.  

This variable would be self_reduced and I can through changing the slider value to change it too.
However, I can't control the slider value when running, even the slider value follows the _Energy variable.
  1. public UISlider xx;
  2.  
  3. xx.value = _Energy/2.0f;
  4.  

How should it be fixed?

It seems that because it doesn't return a value so this situation happen.

However I actually did it...

Am I right?

Thanks!

15
NGUI 3 Support / Tween position with use of UISprite
« on: March 19, 2014, 08:31:56 AM »
For the different resolution of the devices, if I want to use Tween position to play tween of the UISprite,

there is a problem that it would tween to wrong position.

How can fix it that the Tween Position would be tiled with the screen resolution?

Thanks!

Pages: [1] 2