Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2015
1,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.27 KB | None | 0 0
  1. using UnityEditor;
  2. using UnityEngine;
  3.  
  4. public sealed class ExampleClass : EditorWindow
  5. {
  6. private static readonly string[] mList =
  7. {
  8. "AboutWIndowLicenseLabel" ,
  9. "AC LeftArrow" ,
  10. "AC RightArrow" ,
  11. "AnimationCurveEditorBackground" ,
  12. "AnimationEventBackground" ,
  13. "AnimationEventTooltip" ,
  14. "AnimationEventTooltipArrow" ,
  15. "AnimationKeyframeBackground" ,
  16. "AnimationRowEven" ,
  17. "AnimationRowOdd" ,
  18. "AnimationSelectionTextField" ,
  19. "AnimationTimelineTick" ,
  20. "AnimPropDropdown" ,
  21. "AppToolbar" ,
  22. "AS TextArea" ,
  23. "BoldLabel" ,
  24. "BoldToggle" ,
  25. "ButtonLeft" ,
  26. "ButtonMid" ,
  27. "ButtonRight" ,
  28. "CN Box" ,
  29. "CN CountBadge" ,
  30. "CN EntryBackEven" ,
  31. "CN EntryBackOdd" ,
  32. "CN EntryError" ,
  33. "CN EntryInfo" ,
  34. "CN EntryWarn" ,
  35. "CN Message" ,
  36. "CN StatusError" ,
  37. "CN StatusInfo" ,
  38. "CN StatusWarn" ,
  39. "ColorField" ,
  40. "ColorPicker2DThumb" ,
  41. "ColorPickerBackground" ,
  42. "ColorPickerBox" ,
  43. "ColorPickerHorizThumb" ,
  44. "ColorPickerVertThumb" ,
  45. "Command" ,
  46. "CommandLeft" ,
  47. "CommandMid" ,
  48. "CommandRight" ,
  49. "ControlLabel" ,
  50. "CurveEditorLabelTickmarks" ,
  51. "debug_layout_box" ,
  52. "dockarea" ,
  53. "dockareaOverlay" ,
  54. "dockareaStandalone" ,
  55. "dragtab" ,
  56. "dragtabbright" ,
  57. "dragtabdropwindow" ,
  58. "DropDown" ,
  59. "DropDownButton" ,
  60. "ErrorLabel" ,
  61. "ExposablePopupItem" ,
  62. "ExposablePopupMenu" ,
  63. "EyeDropperHorizontalLine" ,
  64. "EyeDropperPickedPixel" ,
  65. "EyeDropperVerticalLine" ,
  66. "flow background" ,
  67. "flow navbar back" ,
  68. "flow navbar button" ,
  69. "flow navbar separator" ,
  70. "flow node 0" ,
  71. "flow node 0 on" ,
  72. "flow node 1" ,
  73. "flow node 1 on" ,
  74. "flow node 2" ,
  75. "flow node 2 on" ,
  76. "flow node 3" ,
  77. "flow node 3 on" ,
  78. "flow node 4" ,
  79. "flow node 4 on" ,
  80. "flow node 5" ,
  81. "flow node 5 on" ,
  82. "flow node 6" ,
  83. "flow node 6 on" ,
  84. "flow node hex 0" ,
  85. "flow node hex 0 on" ,
  86. "flow node hex 1" ,
  87. "flow node hex 1 on" ,
  88. "flow node hex 2" ,
  89. "flow node hex 2 on" ,
  90. "flow node hex 3" ,
  91. "flow node hex 3 on" ,
  92. "flow node hex 4" ,
  93. "flow node hex 4 on" ,
  94. "flow node hex 5" ,
  95. "flow node hex 5 on" ,
  96. "flow node hex 6" ,
  97. "flow node hex 6 on" ,
  98. "flow node titlebar" ,
  99. "flow overlay area left" ,
  100. "flow overlay area right" ,
  101. "flow overlay box" ,
  102. "flow overlay foldout" ,
  103. "flow overlay header lower left" ,
  104. "flow overlay header lower right" ,
  105. "flow overlay header upper left" ,
  106. "flow overlay header upper right" ,
  107. "flow shader in 0" ,
  108. "flow shader in 1" ,
  109. "flow shader in 2" ,
  110. "flow shader in 3" ,
  111. "flow shader in 4" ,
  112. "flow shader in 5" ,
  113. "flow shader node 0" ,
  114. "flow shader node 0 on" ,
  115. "flow shader out 0" ,
  116. "flow shader out 1" ,
  117. "flow shader out 2" ,
  118. "flow shader out 3" ,
  119. "flow shader out 4" ,
  120. "flow shader out 5" ,
  121. "flow target in" ,
  122. "flow triggerPin in" ,
  123. "flow triggerPin out" ,
  124. "flow var 0" ,
  125. "flow var 0 on" ,
  126. "flow var 1" ,
  127. "flow var 1 on" ,
  128. "flow var 2" ,
  129. "flow var 2 on" ,
  130. "flow var 3" ,
  131. "flow var 3 on" ,
  132. "flow var 4" ,
  133. "flow var 4 on" ,
  134. "flow var 5" ,
  135. "flow var 5 on" ,
  136. "flow var 6" ,
  137. "flow var 6 on" ,
  138. "flow varPin in" ,
  139. "flow varPin out" ,
  140. "flow varPin tooltip" ,
  141. "Foldout" ,
  142. "FoldOutPreDrop" ,
  143. "GameViewBackground" ,
  144. "Grad Down Swatch" ,
  145. "Grad Down Swatch Overlay" ,
  146. "Grad Up Swatch" ,
  147. "Grad Up Swatch Overlay" ,
  148. "grey_border" ,
  149. "GridList" ,
  150. "GridListText" ,
  151. "GridToggle" ,
  152. "GroupBox" ,
  153. "GUIEditor.BreadcrumbLeft" ,
  154. "GUIEditor.BreadcrumbMid" ,
  155. "GV Gizmo DropDown" ,
  156. "HeaderLabel" ,
  157. "HelpBox" ,
  158. "Hi Label" ,
  159. "HorizontalMinMaxScrollbarThumb" ,
  160. "hostview" ,
  161. "IN BigTitle" ,
  162. "IN BigTitle Inner" ,
  163. "IN ColorField" ,
  164. "IN DropDown" ,
  165. "IN Foldout" ,
  166. "IN FoldoutStatic" ,
  167. "IN Label" ,
  168. "IN LockButton" ,
  169. "IN ObjectField" ,
  170. "IN Popup" ,
  171. "IN SelectedLine" ,
  172. "IN TextField" ,
  173. "IN ThumbnailSelection" ,
  174. "IN ThumbnailShadow" ,
  175. "IN Title" ,
  176. "IN TitleText" ,
  177. "IN Toggle" ,
  178. "InnerShadowBg" ,
  179. "InvisibleButton" ,
  180. "LargeButton" ,
  181. "LargeButtonLeft" ,
  182. "LargeButtonMid" ,
  183. "LargeButtonRight" ,
  184. "LargeDropDown" ,
  185. "LargeLabel" ,
  186. "LargePopup" ,
  187. "LargeTextField" ,
  188. "LightmapEditorSelectedHighlight" ,
  189. "ListToggle" ,
  190. "LockedHeaderBackground" ,
  191. "LockedHeaderButton" ,
  192. "LockedHeaderLabel" ,
  193. "LODBlackBox" ,
  194. "LODCameraLine" ,
  195. "LODLevelNotifyText" ,
  196. "LODRendererAddButton" ,
  197. "LODRendererButton" ,
  198. "LODRendererRemove" ,
  199. "LODRenderersText" ,
  200. "LODSceneText" ,
  201. "LODSliderBG" ,
  202. "LODSliderRange" ,
  203. "LODSliderRangeSelected" ,
  204. "LODSliderText" ,
  205. "LODSliderTextSelected" ,
  206. "MeBlendBackground" ,
  207. "MeBlendPosition" ,
  208. "MeBlendTriangleLeft" ,
  209. "MeBlendTriangleRight" ,
  210. "MeLivePlayBackground" ,
  211. "MeLivePlayBar" ,
  212. "MeTimeLabel" ,
  213. "MeTransBGOver" ,
  214. "MeTransitionBack" ,
  215. "MeTransitionBlock" ,
  216. "MeTransitionHandleLeft" ,
  217. "MeTransitionHandleLeftPrev" ,
  218. "MeTransitionHandleRight" ,
  219. "MeTransitionHead" ,
  220. "MeTransitionSelect" ,
  221. "MeTransitionSelectHead" ,
  222. "MeTransOff2On" ,
  223. "MeTransOffLeft" ,
  224. "MeTransOffRight" ,
  225. "MeTransOn2Off" ,
  226. "MeTransOnLeft" ,
  227. "MeTransOnRight" ,
  228. "MeTransPlayhead" ,
  229. "MiniBoldLabel" ,
  230. "minibutton" ,
  231. "minibuttonleft" ,
  232. "minibuttonmid" ,
  233. "minibuttonright" ,
  234. "MiniLabel" ,
  235. "MiniLabelRight" ,
  236. "MiniMinMaxSliderHorizontal" ,
  237. "MiniMinMaxSliderVertical" ,
  238. "MiniPopup" ,
  239. "MiniPullDown" ,
  240. "MiniPullDownLeft" ,
  241. "MiniTextField" ,
  242. "MiniToolbarButton" ,
  243. "MiniToolbarButtonLeft" ,
  244. "MiniToolbarPopup" ,
  245. "MinMaxHorizontalSliderThumb" ,
  246. "NotificationBackground" ,
  247. "NotificationText" ,
  248. "ObjectField" ,
  249. "ObjectFieldThumb" ,
  250. "ObjectFieldThumbOverlay" ,
  251. "ObjectFieldThumbOverlay2" ,
  252. "ObjectPickerBackground" ,
  253. "ObjectPickerGroupHeader" ,
  254. "ObjectPickerLargeStatus" ,
  255. "ObjectPickerPreviewBackground" ,
  256. "ObjectPickerResultsEven" ,
  257. "ObjectPickerResultsGrid" ,
  258. "ObjectPickerResultsGridLabel" ,
  259. "ObjectPickerResultsOdd" ,
  260. "ObjectPickerSmallStatus" ,
  261. "ObjectPickerTab" ,
  262. "ObjectPickerToolbar" ,
  263. "OL box" ,
  264. "OL box NoExpand" ,
  265. "OL Elem" ,
  266. "OL EntryBackEven" ,
  267. "OL EntryBackOdd" ,
  268. "OL header" ,
  269. "OL Label" ,
  270. "OL Minus" ,
  271. "OL Plus" ,
  272. "OL TextField" ,
  273. "OL Title" ,
  274. "OL Title TextRight" ,
  275. "OL Titleleft" ,
  276. "OL Titlemid" ,
  277. "OL Titleright" ,
  278. "OL Toggle" ,
  279. "OL ToggleWhite" ,
  280. "PaneOptions" ,
  281. "PlayerSettingsLevel" ,
  282. "PlayerSettingsPlatform" ,
  283. "Popup" ,
  284. "PopupBackground" ,
  285. "PopupCurveDropdown" ,
  286. "PopupCurveEditorBackground" ,
  287. "PopupCurveEditorSwatch" ,
  288. "PopupCurveSwatchBackground" ,
  289. "PR DigDownArrow" ,
  290. "PR Insertion" ,
  291. "PR Label" ,
  292. "PR Ping" ,
  293. "PR TextField" ,
  294. "PreBackground" ,
  295. "PreButton" ,
  296. "PreferencesKeysElement" ,
  297. "PreferencesSection" ,
  298. "PreferencesSectionBox" ,
  299. "PreHorizontalScrollbar" ,
  300. "PreHorizontalScrollbarThumb" ,
  301. "PreLabel" ,
  302. "PreOverlayLabel" ,
  303. "PreSlider" ,
  304. "PreSliderThumb" ,
  305. "PreToolbar" ,
  306. "PreToolbar2" ,
  307. "PreVerticalScrollbar" ,
  308. "PreVerticalScrollbarThumb" ,
  309. "ProfilerBadge" ,
  310. "ProfilerLeftPane" ,
  311. "ProfilerLeftPaneOverlay" ,
  312. "ProfilerPaneLeftBackground" ,
  313. "ProfilerPaneSubLabel" ,
  314. "ProfilerRightPane" ,
  315. "ProfilerScrollviewBackground" ,
  316. "ProfilerSelectedLabel" ,
  317. "ProgressBarBack" ,
  318. "ProgressBarBar" ,
  319. "ProgressBarText" ,
  320. "ProjectBrowserBottomBarBg" ,
  321. "ProjectBrowserGridLabel" ,
  322. "ProjectBrowserHeaderBgMiddle" ,
  323. "ProjectBrowserHeaderBgTop" ,
  324. "ProjectBrowserIconAreaBg" ,
  325. "ProjectBrowserIconDropShadow" ,
  326. "ProjectBrowserPreviewBg" ,
  327. "ProjectBrowserSubAssetBg" ,
  328. "ProjectBrowserSubAssetBgCloseEnded" ,
  329. "ProjectBrowserSubAssetBgDivider" ,
  330. "ProjectBrowserSubAssetBgMiddle" ,
  331. "ProjectBrowserSubAssetBgOpenEnded" ,
  332. "ProjectBrowserSubAssetExpandBtn" ,
  333. "ProjectBrowserTopBarBg" ,
  334. "QualitySettingsDefault" ,
  335. "Radio" ,
  336. "RightLabel" ,
  337. "RL Background" ,
  338. "RL DragHandle" ,
  339. "RL Element" ,
  340. "RL Footer" ,
  341. "RL FooterButton" ,
  342. "RL Header" ,
  343. "SC ViewAxisLabel" ,
  344. "SC ViewLabel" ,
  345. "SceneViewOverlayTransparentBackground" ,
  346. "ScriptText" ,
  347. "SearchCancelButton" ,
  348. "SearchCancelButtonEmpty" ,
  349. "SearchModeFilter" ,
  350. "SearchTextField" ,
  351. "SelectionRect" ,
  352. "ServerChangeCount" ,
  353. "ServerUpdateChangeset" ,
  354. "ServerUpdateChangesetOn" ,
  355. "ServerUpdateInfo" ,
  356. "ServerUpdateLog" ,
  357. "ShurikenCheckMark" ,
  358. "ShurikenEffectBg" ,
  359. "ShurikenEmitterTitle" ,
  360. "ShurikenLabel" ,
  361. "ShurikenLine" ,
  362. "ShurikenMinus" ,
  363. "ShurikenModuleBg" ,
  364. "ShurikenModuleTitle" ,
  365. "ShurikenObjectField" ,
  366. "ShurikenPlus" ,
  367. "ShurikenPopUp" ,
  368. "ShurikenToggle" ,
  369. "ShurikenValue" ,
  370. "SimplePopup" ,
  371. "SliderMixed" ,
  372. "StaticDropdown" ,
  373. "sv_iconselector_back" ,
  374. "sv_iconselector_button" ,
  375. "sv_iconselector_labelselection" ,
  376. "sv_iconselector_selection" ,
  377. "sv_iconselector_sep" ,
  378. "sv_label_0" ,
  379. "sv_label_1" ,
  380. "sv_label_2" ,
  381. "sv_label_3" ,
  382. "sv_label_4" ,
  383. "sv_label_5" ,
  384. "sv_label_6" ,
  385. "sv_label_7" ,
  386. "TabWindowBackground" ,
  387. "Tag MenuItem" ,
  388. "Tag TextField" ,
  389. "Tag TextField Button" ,
  390. "Tag TextField Empty" ,
  391. "TE NodeBackground" ,
  392. "TE NodeBox" ,
  393. "TE NodeBoxSelected" ,
  394. "TE NodeLabelBot" ,
  395. "TE NodeLabelTop" ,
  396. "TE PinLabel" ,
  397. "TE Toolbar" ,
  398. "TE toolbarbutton" ,
  399. "TE ToolbarDropDown" ,
  400. "TimeScrubber" ,
  401. "TimeScrubberButton" ,
  402. "TL BaseStateLogicBarOverlay" ,
  403. "TL EndPoint" ,
  404. "TL InPoint" ,
  405. "TL ItemTitle" ,
  406. "TL LeftColumn" ,
  407. "TL LeftItem" ,
  408. "TL LogicBar 0" ,
  409. "TL LogicBar 1" ,
  410. "TL LogicBar parentgrey" ,
  411. "TL LoopSection" ,
  412. "TL OutPoint" ,
  413. "TL Playhead" ,
  414. "TL Range Overlay" ,
  415. "TL RightLine" ,
  416. "TL Selection H1" ,
  417. "TL Selection H2" ,
  418. "TL SelectionBarCloseButton" ,
  419. "TL SelectionBarPreview" ,
  420. "TL SelectionBarText" ,
  421. "TL SelectionButton" ,
  422. "TL SelectionButton PreDropGlow" ,
  423. "TL SelectionButtonName" ,
  424. "TL SelectionButtonNew" ,
  425. "TL tab left" ,
  426. "TL tab mid" ,
  427. "TL tab plus left" ,
  428. "TL tab plus right" ,
  429. "TL tab right" ,
  430. "ToggleMixed" ,
  431. "Toolbar" ,
  432. "toolbarbutton" ,
  433. "ToolbarDropDown" ,
  434. "ToolbarPopup" ,
  435. "ToolbarSeachCancelButton" ,
  436. "ToolbarSeachCancelButtonEmpty" ,
  437. "ToolbarSeachTextField" ,
  438. "ToolbarSeachTextFieldPopup" ,
  439. "ToolbarSearchField" ,
  440. "ToolbarTextField" ,
  441. "Tooltip" ,
  442. "U2D.createRect" ,
  443. "U2D.dragDot" ,
  444. "U2D.dragDotDimmed" ,
  445. "VCS_StickyNote" ,
  446. "VCS_StickyNoteArrow" ,
  447. "VCS_StickyNoteLabel" ,
  448. "VCS_StickyNoteP4" ,
  449. "VerticalMinMaxScrollbarThumb" ,
  450. "VisibilityToggle" ,
  451. "WhiteBoldLabel" ,
  452. "WhiteLabel" ,
  453. "WhiteLargeLabel" ,
  454. "WhiteMiniLabel" ,
  455. "WinBtnCloseActiveMac" ,
  456. "WinBtnCloseMac" ,
  457. "WinBtnCloseWin" ,
  458. "WinBtnInactiveMac" ,
  459. "WinBtnMaxActiveMac" ,
  460. "WinBtnMaxMac" ,
  461. "WinBtnMaxWin" ,
  462. "WinBtnMinActiveMac" ,
  463. "WinBtnMinMac" ,
  464. "WinBtnMinWin" ,
  465. "WindowBackground" ,
  466. "WindowBottomResize" ,
  467. "WindowResizeMac" ,
  468. "Wizard Box" ,
  469. "Wizard Error" ,
  470. "WordWrapLabel" ,
  471. "WordWrappedLabel" ,
  472. "WordWrappedMiniLabel" ,
  473. "WrappedLabel" ,
  474. };
  475.  
  476. private Vector2 mScrollPos;
  477.  
  478. [MenuItem( "Tools/Example" )]
  479. private static void Example()
  480. {
  481. GetWindow<ExampleClass>( true );
  482. }
  483.  
  484. private void OnGUI()
  485. {
  486. mScrollPos = EditorGUILayout.BeginScrollView( mScrollPos );
  487. foreach ( var n in mList )
  488. {
  489. EditorGUILayout.BeginHorizontal( GUILayout.Height( 48 ) );
  490. EditorGUILayout.SelectableLabel( n );
  491. EditorGUILayout.Toggle( false, n );
  492. EditorGUILayout.EndHorizontal();
  493. GUILayout.Box(
  494. string.Empty,
  495. GUILayout.Width( position.width - 24 ),
  496. GUILayout.Height( 1 )
  497. );
  498. }
  499. EditorGUILayout.EndScrollView();
  500. }
  501. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement