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 do I attach expose a tooltip to a basic variable in code c++

Title said it all.

I want a tooltip to appear in the editor when hovering over it with a mouse. The variable to set is declared in code.

Product Version: Not Selected
Tags:
more ▼

asked Nov 14 '14 at 02:48 PM in C++ Programming

avatar image

TinyTeaTree
23 9 10 12

avatar image Stollie69 Feb 15 '19 at 07:54 AM

Tried out both of the suggested solutions in 4.21.2 on two different variables for anyone else who lands here - either works :)

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

2 answers: sort voted first

Wiki

Creating variables in C++ for use in BP / Editor

https://wiki.unrealengine.com/Blueprints,_Creating_Variables_in_C%2B%2B_For_Use_In_BP

Rama

more ▼

answered Nov 14 '14 at 04:52 PM

avatar image

Rama
10.5k 444 343 1081

avatar image TinyTeaTree Nov 14 '14 at 05:37 PM

Cool, correct answer. I searched over all google and couldn't find it I hope this question pops up to peoples searches

btw If you could add to your answer that ..

/** What is the Player's current musical skill level? */ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=PlayerMusicSkill) int32 MusicSkillLevel;

it is the commets that become tooltips that would be great and

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

This should work:

 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=PlayerMusicSkill, meta = (ToolTip = "What is the Player's current musical skill level?"))
 int32 MusicSkillLevel;
more ▼

answered Oct 08 '15 at 02:34 PM

avatar image

mgerhardy
36 2 5 8

(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