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

Pages: [1] 2
1
Hi ArenMook,

May you show how to anim or tween anchor object ? I try tweening object, it work (just anchor Enable) but the position is difference in another resolutions.

How to do like this ?

http://ge-team.com/pages/unity-3d/gui-animator-for-ngui/

Thank.

2
NGUI 3 Support / Panel doesn't clip a custom widget by demand
« on: October 06, 2014, 05:12:32 AM »
I have to implement a scroll view which have items can be pressed. When they are pressed, a widget child of Item scrollview will be appear but they are cutted by panel scroll view. I just wanna clip parent item scroll view not a widget child of item scroll view. May u help me ?

You can see more detail in this image: orange circle is item scroll view which have label as child, when I press orange cirlce, label will show but they are clipped by panel

3
NGUI 3 Support / NGUI Inspector so laggy
« on: October 06, 2014, 02:52:13 AM »
My NGUI inspector so laggy, I don't know what make it crazy. Another inspector of Unity is fine but only lag when i choose a gameobject that attach NGUI Scripts resource.
I use Unity 4.5.4 and NGUI 3.7.4

4
NGUI 3 Support / Custom size dropdown list of UIPopupList
« on: September 15, 2014, 11:02:27 AM »
Hi ArenMook again, i wanna custom size dropdown list of UIPopuplist and aligh right the label, i just add simple popup list from prefab tools and change sprite and fontsize from 20 to 40 but not work. You can see image below (used latest NGUI 3.7.2)


5
NGUI 3 Support / Best way for raycast only UI
« on: September 07, 2014, 09:27:06 PM »
My issue is raycast when i touch UI this make raycast twice for UI and screen but i only wanna make UI touch. May someone show me how to solve this ?

6
NGUI 3 Support / UILabel Bitmap font vs Dynamic font for performance
« on: August 20, 2014, 11:28:40 PM »
Can u explain which is good for mobile device performance ?

7
NGUI 3 Support / Set TweenPosition from/to after play
« on: August 20, 2014, 09:39:19 AM »
Hi, can u show me how to set tweenposition from/to again after play ? I use a objectpool and need to reset it but i cant :)

8
NGUI 3 Support / Mini camera to view a model 3d
« on: August 17, 2014, 10:08:43 PM »
Hi, I wanna make a camera to view a model 3d like avatar but i dont know how to make it with Camera or UICamera, how to make a custom sharp for viewport rect and anchor it if i use ngui.

Just see in dota 2 avatar ingame



Anyone can do it, please help me :) Thank.

9
NGUI 3 Support / UIPanel.LateUpdate() make so high CPU
« on: July 23, 2014, 03:20:47 AM »
I have too many objects needed update (about over 100 objects) My objects is a health bar and they must be update position follow character move.

My code update position of health bar

  1. void LateUpdate () {
  2.                 if (gameObject.activeSelf)
  3.                 {
  4.                         pos = worldCamera.WorldToViewportPoint (Target.transform.position);
  5.                         pos = uiCamera.ViewportToWorldPoint (pos);
  6.                         pos.y += 0.35f;
  7.                         pos.z = 0f;
  8.                         transform.position = pos;      
  9.                 }
  10.         }

This make high CPU, do you have any idea to help me to deal with this issue ?



10
NGUI 3 Support / Optimize foreach resolution
« on: July 18, 2014, 03:21:20 AM »
My game just only support 4 resolution with aspec ratio 4:3 (ipad) 3:2 (iphone) 16:9 and 16:10. I know UI Root always keep the game object scaled to 2/(Screen.height) but that not my desire. Anyway to adjust in each resolution ex: 4:3 use fit height, 3:2 use fit width, 16:9 use fit visible or 16:10 pixel perfect ?

I'm the one who had asked can use TK2DCamera in 2D Tool Kit (because this camera script have awesome feature like i say above) together with all NGUI scripts and no UI Root.

I would love to use totally NGUI and may u think about my question :) it's would be awesome feature and your plugin will get back to my best choise to implement UI :)

11
NGUI 3 Support / Remove UI Root and UI Camera ?
« on: July 07, 2014, 10:40:35 PM »
I dont' like scaling style like NGUI, may i remove UI Root and UI Camera ? NGUI will work without them ?

12
NGUI 3 Support / Scaling style "Closest multiple of two"
« on: July 07, 2014, 05:57:15 AM »
Hi guys, i have a question about scaling style. So NGUI have scaling style like "Closest multiple of two" of TK2D ? When i change scene from native scene 1920x1280 to 1024x768 if i use ngui with scaling style fixedsizeonmobile, it only scale base height but if i remove UI Root, UI Camera and use tk2d camera with overrider so it scale base width and height

You can see results

Totally NGUI 3.6.7


http://postimg.org/image/ixyne1tg3/

Totally NGUI but remove UI Root and UI Camera, use only TK2DCamera 2D Tookit 2.4.0


http://postimg.org/image/ni0ftz0bf/

13
NGUI 3 Support / How to implement floating hud controls in NGUI ?
« on: June 15, 2014, 12:14:34 PM »
Hi, i want to make a heath bar in 3D game look like this http://www.daikonforge.com/dfgui/examples/floating-hud-controls/ in Daikon UI. I'm newbie with Unity and NGUI so anyone know how to do that ?

14
NGUI 3 Support / Ray from 2D UI NGUI to 3D World
« on: June 06, 2014, 10:32:50 PM »
I have 2D ui ngui with a button and 3d plane. When i drag button, i want to ray last position of button to 3d plane position, do you show me how to do that ?

15
NGUI 3 Support / How to detect when un press a button ?
« on: June 04, 2014, 03:01:27 AM »
OnPress method only run 2 time when i press and unpress a button. I put a log in OnPress method and it show me 2 time but how can i detect when i unpress ? Any method OnUnPress ?

Pages: [1] 2