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"

How do i make a GTA V style weapon selection wheel?

How would I go about making a GTA V style weapon wheel?

Product Version: UE 4.18
Tags:
more ▼

asked Jun 26 '18 at 09:37 AM in Blueprint Scripting

avatar image

dwarfinator1
1 2 3

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

1 answer: sort voted first

The question is a bit too broad to answer it straight.

I'd start by making each of the wheel slices a separate widget so you can reuse the functionality. Treat it as a weapon slot and populate it with a weapon (provide the slot with a weapon object reference, for example); manage empty slot behaviour here, ammo counters, highlights and so on. An overlay as a slot + image and a text block should be enough to start with.

Use a separate widget with a canvas to assemble it in the Designer and handle the rest of the required functionality here. You should have direct child widget references available at this point.


The one major issue you may run into is the shape of slice and how cursor interaction works. The UMG does not support pixel perfect collisions out of the box, unless something changed recently. You can create a workaround solution by using approximation and stacking borders in a vertical box to form a rough trapezoid shape - it's usually enough for the players to not notice the slight shape inconsistency. Otherwise you'd need to make your own custom solution or use someone else's but its integration may complicate things a bit.

more ▼

answered Jun 26 '18 at 10:09 AM

avatar image

Everynone
14.8k 77 25 62

(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