static public Create ( string name, Vector3 pos ) : UIListItem, | ||
name | string | Name to give to the new GameObject. |
pos | Vector3 | Position, in world space, where the new object should be created. |
return | UIListItem, |
new static public UIListItem Create(string name, Vector3 pos)
{
GameObject go = new GameObject(name);
go.transform.position = pos;
return (UIListItem)go.AddComponent(typeof(UIListItem));
}
UIListItem::Create ( string name, Vector3 pos, Quaternion rotation ) : UIListItem, |