I am trying to do something like this with Unity Editor for my window but I am not sure how it is done.

enter image description here

So it is basically a box ( a wrapper ) with a title at top. Beneath the title there are boxes or "cards" where you add text to it.

Any help is appreciated!

  • \$\begingroup\$ This is too broad. Try to explain what you want to achieve more detailed. \$\endgroup\$ Oct 19 '17 at 16:12
  • \$\begingroup\$ I want to make this ui \$\endgroup\$
    – user108457
    Oct 19 '17 at 16:18
  • \$\begingroup\$ Do I understand correctly that this is for an Editor window (ie. a control you're using to help build your game in the Unity editing software, not something that's rendered in the game itself for the player to interact with)? \$\endgroup\$
    – DMGregory
    Oct 19 '17 at 16:29
  • \$\begingroup\$ Yes @DMGregory you are right \$\endgroup\$
    – user108457
    Oct 19 '17 at 17:07

Just use GUILayout.BeginVertical with style window.

GUILayout.BeginVertical("Card Title", "window");
GUILayout.Button("button 1");
GUILayout.Button("button 2");
GUILayout.Label("some text");
GUILayout.Label("more text");
GUILayout.Label("still text");



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.