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;
时间: 2024-10-17 07:47:41