Unity UGUI 下拉菜单

1.新建Buttom

2.panel里面加下拉buttom

using UnityEngine;
using System.Collections;

public class DropDownList : MonoBehaviour {

    public GameObject panel;
    void Start () 
    {
        panel.SetActive (false);
    }
public void HideOrShow() { panel.SetActive (!panel.activeSelf); } }

 

 

http://www.unity.5helpyou.com/2647.html

 

ugui无法在android父类对齐:

xxx.transform.GetComponent<RectTransform>().localPosition = Vector3.zero;

posted @ 2015-06-15 18:22  Cvjar  阅读(1289)  评论(0)    收藏  举报