x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[UMG] how to properly use "Grid Panel" widget?

i have come across this native widget, and can't find any useful information about it.

alt text by the icon and the tiny description, i assume it implies a grid like Diablo inventory (see Diablo picture below) alt text

am i right?

in any case, how to properly use it?

Product Version: UE 4.16
Tags:
screenshot_2.png (8.5 kB)
screenshot_3.png (99.3 kB)
more ▼

asked Jun 02 '17 at 08:09 PM in Blueprint Scripting

avatar image

Arty-McLabin
868 19 41 61

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The grid panel could potentially be used for what you've shown in the screenshot.

Basically, the grid panel will attempt to divide up space for whatever you drag into it.

To get a good idea of how this works, drag a grid panel into UMG and drag a few buttons or other widgets into it. You'll be able to move the buttons along by clicking on them, and changing the values in the "Slot (Grid Slot)" tab for the button. There will be Row and Column options - try changing these, and you'll see that you can choose what row or column you want to button to appear in. You'll also have options like nudge, which will offset the widget.

My advice is just to start dragging things in, seeing what the settings do, and once comfortable, start scripting with the Grid Panel. Good luck! :)

more ▼

answered Jun 03 '17 at 06:37 AM

avatar image

Reuben Ward
343 8 4 16

avatar image Arty-McLabin Jun 03 '17 at 11:03 AM

thank you for answering! howerver, it doesn't seem to work like i've described above, instead it arranges the stuff pretty similarly to uniform grid, for example: ![alt text][1] here the small widgets (button in this case) takes a place of the biggest widget in it's row and column, and i can't figure out how to put a lot of small widgets there instead of one (because there is simply place for them)

do you have any clue?

screenshot_2.png (22.3 kB)
avatar image Arty-McLabin Jun 03 '17 at 11:51 AM

i've found the solution! use "row span" and "column span" to determine the size of the widget: alt text in the above case, i've set column span to 4 and row span to 3 for the bigger widget.

screenshot_3.png (13.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question