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

Pages: [1]
1
NGUI 3 Support / Re: UIGrid arrangement problem.
« on: March 20, 2014, 10:18:33 PM »
thankyou for replying, i think i spotted the problem, unity automatic sort the child of the grid according to the object's name, thats why my "L"abelObject is infront of my "T"exture Object

2
NGUI 3 Support / UIGrid arrangement problem.
« on: March 19, 2014, 10:10:16 PM »
i dynamically spawn UIlabel and UITexture objects (as child) into a UIGrid object, the result i want to acheive is the items in the grid arranged randomly, but the result i get was like this:

the UIlabel objects seems automatically arranged to the left, i am pretty sure my random algorithm are working correctly, as a prove there is the debug log for above case:


what is the possible reason of causing this? i am sure i dint tick the "Sorted" option in UIGrid

3
NGUI 3 Support / collider fail to match with the size of label
« on: February 28, 2014, 03:28:12 AM »


the orange color box is the size of label, the text of label are assigned during run time. but the collider (green box) are not match with the size of label.

i have tried to:
1. tick the "auto adjust collider" option under the widget of label.
2. called NGUItools.UpdateWidgetCollider(), pass in the collider of label, after i assign the text of label.
3. called GetComponent<UILabel>().ResizeCollider(), after i assign the text of label.
4. called NGUItools.CalculateRelativeWidgetBounds, calculate the value and manually assign to the size of the collider.

after i tired all above method, the collider still same like what the picture shown. please help :(

4
NGUI 3 Support / Shuffle objects in table?
« on: February 25, 2014, 10:14:43 PM »
i want to shuffle objects in a table, so that they arrange randomly, is it possible to done by using NGUI?

5
NGUI 3 Support / Re: making a 3D game object as a button
« on: February 18, 2014, 08:42:54 PM »
thanks for replying, that works, but now i faces another problem, i am using NGUI, and the 3D game object button being blocked by the background UI, i want the 3D object button to be appear at the front of background UI, how could i achieve that? which NGUI script should i attach to the 3D object button so that i can change its depth value?

6
NGUI 3 Support / How to change the dimension in widget
« on: February 18, 2014, 05:07:36 AM »
i want to change the dimensions in the widget of UISprite in my script, is it possible to do so? can someone provide the example code statement? thank alot  :)

7
NGUI 3 Support / how to check which type of NGUI i using?
« on: February 18, 2014, 01:25:34 AM »
company assign to me a existing project. the project uses NGUI, how can i check whether the NGUI the project using is pro version or standard version?

8
NGUI 3 Support / making a 3D game object as a button
« on: February 17, 2014, 10:52:43 PM »
hello, i have a game object which includes a model and animation. i wish to make it works like button in NGUI UI, is it possible?

9
NGUI 3 Support / the depth problem
« on: February 17, 2014, 05:36:41 AM »
i am newbie in NGUI, i have created a list of buttons, when i clicked on one of the buttons, it will trigger a tab, currently i facing some problem.

some of the tabs are working as expected, but some of them have this kind of error:


what is the possible reason to causes this error? i am sure the depth of every buttons i set is higher than the tab

10
NGUI 3 Support / from 2.7 to 3.49 UIAtlas.coordinates problem.
« on: February 16, 2014, 11:00:58 PM »
i got this error after upgrading from 2.7 to 3.49


code: item.iconAtlas.coordinates == UIAtlas.Coordinates.Pixels

Error CS1061: 'UIAtlas' does not contain a definition for 'coordinates' and no extension method 'coordinates' accepting a first argument of type 'UIAtlas' could be found (are you missing a using directive or an assembly reference?) (CS1061) (Assembly-CSharp-Editor)

Error CS0122: 'UIAtlas.Coordinates' is inaccessible due to its protection level (CS0122) (Assembly-CSharp-Editor)

Pages: [1]