您当前的位置: 首页 >  unity
  • 3浏览

    0关注

    193博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

UnityEditor编辑器自定义GUILayout Button颜色

我寄人间雪满头丶 发布时间:2021-08-25 11:35:31 ,浏览量:3

代码

        Color bc = GUI.backgroundColor;
        GUI.backgroundColor = Color.green;
        
		if (GUILayout.Button("CreateCurve", GUILayout.Height(30)))
        {
        }
		
		GUI.backgroundColor = bc;

效果 在这里插入图片描述

关注
打赏
1648518768
查看更多评论
立即登录/注册

微信扫码登录

0.1359s