unity 怎么在inspector面板+按钮
1个回答
展开全部
script Examples/Editor the )
staticnbsp.Slider(scale、float 就是文本框.Show()。要实现你这个功能;{
if(Selection.Slider<pre t="code" l="js">// 100
//缩放选择的游戏物体;
@MenuItem(;window ;=nbsp,1;scale 0;thatnbsp,要写 UnityEditor 插件(引入 UnityEditor 的 namespace);Vector3(scale.0,滑动条是EditorGUILayout,在1-100之间
class and
}
function EditorWindow Editor scale);= {
var lets GUILayout extendsnbsp, you selected GameObject EditorGUILayoutSlidernbsp,
}
function =nbsp.localScale betweennbsp.activeTransform;{
var float 1 100);scale
window: Slider = scale;usage.activeTransform)
Selection;function Init() GetWindow(EditorGUILayoutSlider), OnGUI() {
scale EditorGUILayout;OnInspectorUpdate()nbspInspector中的变量的视图形式一般是固定的,int
staticnbsp.Slider(scale、float 就是文本框.Show()。要实现你这个功能;{
if(Selection.Slider<pre t="code" l="js">// 100
//缩放选择的游戏物体;
@MenuItem(;window ;=nbsp,1;scale 0;thatnbsp,要写 UnityEditor 插件(引入 UnityEditor 的 namespace);Vector3(scale.0,滑动条是EditorGUILayout,在1-100之间
class and
}
function EditorWindow Editor scale);= {
var lets GUILayout extendsnbsp, you selected GameObject EditorGUILayoutSlidernbsp,
}
function =nbsp.localScale betweennbsp.activeTransform;{
var float 1 100);scale
window: Slider = scale;usage.activeTransform)
Selection;function Init() GetWindow(EditorGUILayoutSlider), OnGUI() {
scale EditorGUILayout;OnInspectorUpdate()nbspInspector中的变量的视图形式一般是固定的,int
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询