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

Pages: [1]
1
TNet 3 Support / Does Tnet3 support UDP for P2P game?
« on: February 29, 2016, 10:45:34 AM »
Does Tnet3 support UDP for P2P game? :)
thanks !

2
TNet 3 Support / Re: TNet 3 Tutorials
« on: February 25, 2016, 10:32:32 AM »
 :) cool network framework for unity

3
NGUI 3 Support / Re: Label does not appear in Scrollview until touched
« on: January 09, 2014, 07:22:46 AM »
I am not aware of anything that would have this effect. Have you tried making the page semi-transparent to see if the scroll view actually appearing behind your page? Perhaps your settings on the scroll view panel is wrong?

i have this error too.. i am not change the label of items. but i change my scrollView Panel's alpha. but even i dont change alpha. when Add child into scrollView cant see. except i touching the item when begin or drag items when sometimes.

by the way, i cant see any draw call in ScrollView Panel,but in parent panel....

4
 :'(

  1.         void refreshServerList()
  2.         {
  3.                 for(int i =0 ; i < PomeloManager.Self.gameServerList.Count; i++)
  4.                 {
  5.                         createServerItem(PomeloManager.Self.gameServerList[i]);
  6.                 }
  7.                 //tableServer.repositionNow = true;
  8.                 tableServer.Reposition();
  9.                 scrollViewServer.ResetPosition();
  10.         }
  11.  
  12.         void createServerItem(PomeloManager.GameGate gate)
  13.         {
  14.                 //GameObject go = Instantiate(templateServerItem.gameObject) as GameObject;
  15.                 //go.transform.parent = tableServer.transform;
  16.                 //go.transform.localScale = Vector3.one;
  17.  
  18.                 GameObject go = NGUITools.AddChild(tableServer.gameObject, templateServerItem.gameObject);
  19.                 go.SetActive(true);
  20.                
  21.                 UIGameServerItem item = go.GetComponent<UIGameServerItem>();
  22.                 item.gate = gate;
  23.                 serverItems.Add(item);
  24.         }
  25.  

scroll(Contain UIPanel & UIScrollView Components) nothing show On Drawcall popup window. but, i found the children all draw by 3_ServerList(UIPanel).

5
NGUI 3 Support / Re: Execute all?
« on: January 05, 2014, 11:13:11 AM »
this is the solution??

6
NGUI 3 Support / Re: Draggable Panel Optimization
« on: September 11, 2013, 09:21:25 PM »
 :)i solved this. you can used MVC to make your limit instance items to adapt datas.when scroll to the End or Top,let the top or bottom item move to bottom&top.

like this struct only 8 instance items. refresh item's ui with data when scrolling..
-top
-1
-2--------
-3   YOUR PANEL CLIPPING VIEW RECT
-4
-5--------
-6
-bottom

7
NGUI 3 Support / Re: UIPanel and drallcall?
« on: September 10, 2013, 10:46:30 PM »
Draw Calls are based on the number of atlases and dynamic font materials used in your scene.

If you click on your root - UIPanel, it shows you stats for the number of draw calls you are using.

In my example, I am using 1 atlas of sprites, 3 dynamic font materials, so my draw calls say:

Draw Calls 4

If I have any other UIPanels in children nodes, notice how they show Draw Call 0.



that's because the first time all children nodes add into UIPanel - 2D UI,and than add a new panel at one child,this wont add again.so that new uipanel drallcall 0.
i wanna test is UIPanel.LateUpdate function,you know each child changed,will Refresh all of those,will spend a lot of performance....

1、if i make the struct like this(child are the same.)
root(uipanel-0drallcall)MainObject
-child(uipanel-1drallcall)
-child(uipanel-1drallcall)
-child(uipanel-1drallcall)
-child(uipanel-1drallcall)
-child(uipanel-1drallcall)
-child(uipanel-1drallcall)
-child(uipanel-1drallcall)

2、only 1 uipanel at root.
root(uipanel-1drallcall)MainObject
-child
-child
-child
-child
-child
-child
-child


8
NGUI 3 Support / UIPanel and drallcall?
« on: September 10, 2013, 09:18:37 PM »
one UIPanel contain 1 drallcall,if duplicate some of this UIPanel item,mean more drallcall??

root
-uipanel - 1drallcall

after duplicate the same uipanel.

root
-uipanel - 1drallcall
-uipanel - 1drallcall
-uipanel - 1drallcall
-uipanel - 1drallcall

still 1 drallcall???

9
NGUI 3 Support / Re: AssetTimesStamp Error
« on: May 17, 2013, 08:02:21 AM »
Hi, I just updated to v2.6.1 and in the others pc they got this error:


Asset 'Assets/NGUI/Resources/Shaders/DynamicFonts' is in assets but has no assettimestamp...

How I can fix this?

Thanks!

please see Reply #5 ,because this shader is for my Special Need..//

10
Uh oh, the package breaks clipping D:

If anyone has a solution to get clipping working please post, desperately need it (Investigating myself as well).

Edit: I seem to have fixed it with no problems (from what I can see). All I did was modify one line in UIFont

Line 163 (Previously pointed to a different shader)
  1. mDynamicFont.material.shader = Shader.Find("Unlit/Dynamic Font");

 :) i have changed this dynamic Font shader.

PS:i have fixed bug,when the label pivot == TopRight,the emoji sprite will not position right..please use those two new SCRIPTS.

11
 :)hey guys,i have make emoticon supported for dynamic font.
here is pic,please take a look.



and here are packages,install those with NGUI2.6.1.
for more details,I will update later.... ;)

Pages: [1]