脚本组件界面布置
using UnityEngine; public class Juse : MonoBehaviour { [Header("TypeOne")]//标题组名 public Huse dis; public GameObject cia; public GameObject dia; [Space(50)]//两行之间间隙大小 public int des; [Tooltip("This is tip")]//变量名提示 public float gues; void Start() { } } public enum Huse { nianling, sex, didi, niaanling, sesx, ddidi }
效果如下:
标签:界面,布置,GameObject,public,组件,Huse From: https://www.cnblogs.com/gatran/p/17478547.html