Hi,
I made and item from ngui and make a prefab from it. for example:
*Item <--- Item.cs script attached here
**Button1
**Button2
CMenu.cs is my ngui hierarchy menu which i want to add the Item to.
When i try to place this 'Item' in my ngui hierarchy , i do this (in my Item.cs):
Transform tmp = CMenu.instance.transform.Find("Camera/Anchor");
f( tmp!=null ){
transform.parent = tmp;
transform.localPosition = new Vector3( 10f,10f,0f);
}
when i run the code, the position of the item is change to a huge number and not 10f,10f,0f
how can i fix that?
Thanks