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"

OnEndCursorOver Only Working on Some Levels?

Hi all,

I am having a very unusual issue with the function OnEndCursorOver. I am using this function on my character's capsule component to determine whether or not the mouse is within - if it is, I enable SetRenderCustomDepth to draw an outline around the mesh, otherwise it is not visible.

Here is the unusual part: this function is only ever called on one of my maps. If I make a brand new map and drop in a few characters, use the same GameMode and add the required PostProcessingVolume, the function is never called. This is absolutely the case, because the break point is never hit.

Here's the line of code I'm using:

 this->CapsuleComponent->OnEndCursorOver.AddDynamic(this, &ARoguelikeCharacter::MousedOverEnd);

As far as I can tell, nothing sets this map apart from any of the others. Of the 5 maps I have tried, only this single map works.

Is there some level variable or other setting I must enable to see this event fire?

Thanks

Product Version: UE 4.11
Tags:
more ▼

asked Jun 15 '16 at 08:45 PM in C++ Programming

avatar image

Mesothere
78 8 20 24

avatar image MOS99Z Jun 15 '16 at 08:50 PM

One thing I would suggest checking is making sure you have mouse over events turn on for the player controller you are using.

avatar image Mesothere Jun 15 '16 at 08:54 PM

Thanks for the quick response. I did a small update to my original post: the controller is the same in every case.

avatar image MOS99Z Jun 15 '16 at 09:05 PM

Yea since you are using the same game mode I didn't think that would be the issue, also because you did make a break point and its never even reaching the function in 4/5 maps then its not the post processing blendables... I don't know of any level settings that you have to set, tbh I would have to personally look through what you got to figure this out. Good luck. I'll post back if I figure anything out.

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

0 answers: sort voted first
Be the first one to answer this question
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