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"

Component visualizer context menu doesn't appear


I've made a module with a custom component, and a component visualizer. I've managed to get the visualizer to draw a test line from the component to world 0,0,0, so that works. The problem I'm facing now is that the context menu is still the standard AActor context menu. It doesn't use my custom context menu.

I registered the component visualizer with the custom component in my StartupModule:

     TSharedPtr<FComponentVisualizer> Visualizer = MakeShareable(new FGraphVisualizer);
     if (Visualizer.IsValid())
         GUnrealEd->RegisterComponentVisualizer(UGraphVisualizerComponent::StaticClass()->GetFName(), Visualizer);

When I right click on my object, the GenerateContextMenu function doesn't fire. First I thought that maybe I needed to actually click on that component so I moved my mesh inside that component (derived it from UStaticMeshComponent) but it still doesn't work. What do I need to do in order to get the component visualizer to actually fire the GenerateContextMenu function?

Product Version: UE 4.10
more ▼

asked Dec 11 '15 at 11:34 PM in C++ Programming

avatar image

18 6 3 7

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

1 answer: sort voted first

Apparently the context menu is generated only when you right click on something that was drawn by the visualizer ... which makes sense but wasn't really all that intuitive.

more ▼

answered Dec 19 '15 at 10:19 PM

avatar image

18 6 3 7

(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