源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 rivejä
511 B

4 viikkoa sitten
  1. using UnityEngine;
  2. using UnityEditor;
  3. namespace U3DExtends
  4. {
  5. [CustomEditor(typeof(Decorate))]
  6. public class DecorateEditor : Editor
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. Decorate widget = target as Decorate;
  11. if (GUILayout.Button("加载外部图片", GUILayout.Height(30)))
  12. {
  13. UIEditorHelper.SelectPicForDecorate(widget);
  14. }
  15. }
  16. }
  17. //Cat!TODO:给按钮文本等控件增加切换样式的功能
  18. }