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

Pages: [1]
1
NGUI 3 Support / Re: on click function,function with arguments problem
« on: November 08, 2014, 06:35:10 AM »
it only takes object as argument

2
NGUI 3 Support / on click function,function with arguments problem
« on: November 02, 2014, 11:14:33 AM »
i have this code :

  1. public void changescene(string sceneName)
  2. {
  3.  //blablabla
  4. }
  5.  

and i reference it on Button OnClick and the argument comes as Object :/ not a string

3
NGUI 3 Support / Re: UI Input Undo crashes on ios
« on: September 11, 2014, 08:13:49 PM »
until it is fixed(or you find a solution) i would suggest to add a little script where it allows to input (maximum-1) for no crashes

4
NGUI 3 Support / Re: scroll view label child via script position problem
« on: September 11, 2014, 08:10:35 PM »
@ArenMook although i've added UIGrid  & nothing changed i  solved it via script , would be better if scripting doesn't involved

5
NGUI 3 Support / Re: scroll view label child via script position problem
« on: September 10, 2014, 03:25:40 PM »
you are right... sorry  :-X

i have another problem i uploaded images so i can give u understand because i'm not good english speaker...
so i need it to appear like this in the scroll view after instantiation (addchild)

if i drag the label prefab and drop it as a child in hierarchy it automaticaly apears like this,and that is excactly my goal.but via script it appears like this

6
NGUI 3 Support / Re: scroll view label child via script position problem
« on: August 30, 2014, 02:48:37 PM »
it automaticaly sets the parent? or the parent is the gameobject that script is attached?

7
NGUI 3 Support / scroll view label child via script position problem
« on: August 29, 2014, 07:01:41 PM »
hey guys im creating multiplayer game and i am implementing ngui for menu where appears labels in a scrollview that show available server rooms.and i am instantiating a UILabel prefab it apears on UI Root & then i make it a child of scroll view and it's changing position to random numbers or i dont know what's wrong here is the script ... it may be hard coded,any help would be apreciated.btw im new
  1. void drawLobby()
  2.     {
  3.        
  4.            
  5.             foreach ( RoomInfo room in PhotonNetwork.GetRoomList() )
  6.            {
  7.               GameObject TempLabel = (GameObject)Instantiate(roomListlabel);
  8.              
  9.  
  10.               TempLabel.transform.parent = parentObject;
  11.               TempLabel.GetComponent<UILabel>().text = room.name + "  " + room.playerCount + " / " + room.maxPlayers;
  12.  
  13.              
  14.               TempLabel.transform.localScale = new Vector3(1, 1, 1);
  15.               //TempLabel.transform.position = new Vector3(-309, y, 0);
  16.          
  17.                 y -= 40;
  18.  
  19.           }

Pages: [1]