1 GUILayout GUILayout 是 GUI 自动布局的公共类,其中的方法和 GUI 基本类似,均用来绘制、响应各种 UI 控件,不同之处在于 GUILayout 在 GUI 的基础上加入了自动布局功能,无需过多关心 UI 控件的位置和大小。 GUILayoutOption 布局选项 控件的固定宽高 GUILayout.Width(300); GUILayout.Height(200); 允许控件的最小宽高 GUILayout.MinWidth(50); GUILayout.MinHeight(50); 允许控件的最大宽高 GUILayout.MaxWidth(100); GUILayout.MaxHeight(100); 允许或禁止水平拓展 GUILayout.ExpandWidth(true); //允许 GUILayout.ExpandHeight(false); //禁止 GUILayout.ExpandHeight(true); //允许 GUILayout.ExpandHeight(false); //禁止 2 EditorGUI 介绍 ...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by float fSlider
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with float
Contact float, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack