using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public enum ModeEnum//窗口模式枚举 { autofill = 0,//自动填充 fixedSize = 1,//固定大小 } public class NormalPopUpWindow : MonoBehaviour { public ModeEnum Mode = ModeEnum.autofill;//窗口模式 public void setMinimumHeight(int value) { minimumHeight = value; GetComponent().minHeight = minimumHeight; Debug.Log(GetComponent().minHeight); } private int minimumHeight = -1;//最小高度 public void setMinimumWidth(int value) { minimumWidth = value; GetComponent().minWidth = minimumWidth; Debug.Log(GetComponent().minWidth); } private int minimumWidth = -1;//最小宽度 void Start() { } // Update is called once per frame void Update() { } }