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 to detect mouse over a BluePrint object?

I have stolen the BP_Commentary_Box drom the BlueprintExamples project as a button for my test UI.

I want the player to be able to click on 1 of 3 of these buttons to make a choice in the game. When I go into my blueprint and add an event for MouseOver and Click, Im not getting a response or seeing any action on the graph view. Is there a setting I'm missing?

EDIT: I tried performing the steps in the tutorial on the chairs that load up in the default level (square floor with two chairs and a table. I added in the events to the level blueprint and none of them ever fire. There's some caveat or extra step that the Mouse selection tutorial isn't covering

Product Version: Not Selected
Tags:
more ▼

asked Apr 03 '14 at 03:29 AM in Blueprint Scripting

avatar image

Demonicated
336 33 36 206

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

This really puzzles me, is firing up a mouse click even on an object supposed to be this difficult and long-winded?

more ▼

answered Jun 03 '14 at 05:47 AM

avatar image

malospam
16 1 2 4

(comments are locked)
10|2000 characters needed characters left

I follow this tutorial and my objects are still not firing any of the mouse events

more ▼

answered Apr 03 '14 at 04:04 AM

avatar image

Demonicated
336 33 36 206

(comments are locked)
10|2000 characters needed characters left

I found another answer to a similar question. It stated that they had to convert a brush in there example to a static mesh.

What i haven't been able to find out right now is "what types of object can detect mouse events" and "why blueprints allow you to add mouse events to object that don't appear to support them.

Additionally, you need to create a GameMode blueprint and set its Player Controller class to another blueprint that extends the PlayerController default. Then in the Playcontroller you need to "edit defaults" and then under "Mouse interface" enable the mouse inputs you want to capture.

So i found the issue to my original problem. I had added onClick and onMouseOver events to various objects like static meshes, Triggers, TextRenders.

Select the object and in the Details panel under the Collision settings you can set the "Collision Presets" to "block all"

This absolutely solved the issue i had experienced with mouse click and mouse overs not working, but overlap working fine.

https://docs.unrealengine.com/latest/INT/Engine/Physics/Collision/index.html

more ▼

answered May 15 '14 at 02:03 PM

avatar image

Emile.swain
6 3

(comments are locked)
10|2000 characters needed characters left
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