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"

Clickable objects.

Hi, it is my first time using unreal engine and i am making a 3d quiz like game. the player needs to walk round and find objects, when they click an object a multiple choice question will appear. Once they have answered all questions then their final score will appear and the game will end. I cant figure out how to make the actor clickable and for the question widget to appear. Can anyone help? Thanks.

Product Version: UE 4.21
Tags:
more ▼

asked Apr 24 '19 at 12:03 PM in Using UE4

avatar image

Hayley Matear
3 1 2

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

2 answers: sort voted first

You can convert the objects to blueprints and use interfaces to make them clickable:

https://www.youtube.com/watch?v=G_hLUkm7v44

The BP code in the object can then talk to you widget BP.

more ▼

answered Apr 24 '19 at 12:11 PM

avatar image

ClockworkOcean
265 3 4 4

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

if the objects you need to be clicked are not on widget then you need to use LineTracing.

the following are required. #1 : the object you need to be clicked should have collision. either in its mesh or a collision component attach to it #2 : using linetrace you give an start and end and it returns you what it has collided on its path

there are several easy linetracing tutorial on youtube i recommend you to watch. here are two that i like

more ▼

answered Apr 24 '19 at 12:11 PM

avatar image

plangton
367 17 20 31

avatar image ClockworkOcean Apr 24 '19 at 12:16 PM

( I don't think you need line tracing if you set the BP for player input, you can then use the 'leftmouse' event, no?... )

avatar image plangton Apr 24 '19 at 12:35 PM

you are right in this matter. i found a tutorial on this as well https://www.youtube.com/watch?v=eddauM-nP4U

(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