Hello Guest

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

Pages: [1]
1
Support / Re: how to auto fit button graphic size?
« on: September 18, 2013, 12:24:59 pm »
this forum seem have no upload files function
that button have no layout script and the I just change another sprite id .
and the size is not change..


2
Support / Re: how to auto fit button graphic size?
« on: September 18, 2013, 11:31:46 am »
TK2DROOT\tk2dUI_demo\ControlPrefabs\Basic\BasicButton.prefab
this,can't be auto fix fit.

3
Support / how to auto fit button graphic size?
« on: September 18, 2013, 08:27:40 am »
how to auto fit button graphic size?
example:
I change  the button's graphic  form a basebutton to a little bit circle icon
ori size is 100x30  and after icon size is 60X60
I don't want to use transform tool to resize to fit to 60x60,
I want to ask tk2d can auto fixed that size?

4
Support / how to lock uilayer that don't follow game camera?
« on: September 17, 2013, 03:40:16 pm »
how to lock uilayer that don't follow game camera?
here I have a game fllow camera,and I put tk2d into that scene,and all ui will follow camera moving..
I want to lock them ,how to do that ?
thanks.

5
Support / tk2dUIScrollableArea OnClickUIItem questions
« on: September 16, 2013, 04:47:29 am »
tk2dUIScrollableArea  OnClickUIItem  questions

hi,I want to ask how to add click Event of tk2dUIScrollableArea's child item?
here what I do is not right ?
the result is show  always the first  one on click ?
Code: [Select]
  tk2dUIItem item= autoScrollableArea.GetComponent<tk2dUIItem>();

  item.OnClickUIItem += onClickUIItem;

  void onClickUIItem(tk2dUIItem item)
    {

        Debug.Log("click!");

       var sprite= item.GetComponentInChildren<tk2dSprite>();//alway is the first itemui get this event .


     


anything wrong ?

Pages: [1]