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"

Best Method to Make a 3D Widget Appear During Gameplay in VR Q

Hi

I am trying to show a reload prompt when i run out of ammo in a VR game i am making. I have an ammo HUD working. I have a widget component inside an actor that i have placed in my player pawn parented to my camera (3D widget). This way i always see how much ammo i have with the HMD on. Works great, but now i am hung on the best way to make a reload message appear when my ammo is less than 1. Should i spawn the actor or should i try and hide / unhide the reload message actor? If i spawn it, what is the best thing to use for the transform to spawn, I placed a dummy child actor in front of my camera to get a location I could mark. Here is what my blueprint for spawning looks like: alt text

Any help getting me closer to the right way to do this is much appreciated. Thanks in advance!

Product Version: UE 4.15
Tags:
reload prompt.png (171.6 kB)
more ▼

asked Jun 13 '17 at 06:48 AM in VR

avatar image

TacoFriday
11 2 8 9

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

1 answer: sort voted first

Found the answer. Best way (for me) is to keep it hidden so its stays attached to the HMD without any extra logic. The 3d widget is parented to my HMD camera. Spawning it in the world caused me to have extra logic to attach it to the HMD.

alt text

3dwidget.png (66.3 kB)
more ▼

answered Jun 14 '17 at 04:52 AM

avatar image

TacoFriday
11 2 8 9

(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