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 you expose C++ properties to the Rocket Editor?

**I see that this question briefly touches on that**, but doesn't really give an answer or example as to how he is doing this.

I'm able to make changes to my camera using C++ now, but obviously it is a bit of a pain to write it in Visual Studio, build, then test. From what I understand, I could create a blueprint extending from my camera class and make changes in the editor that way, but how do I determine which properties are exposed?

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 02:05 AM in C++ Programming

avatar image

ue4-archive ♦♦ STAFF
49.9k 3658 1983 9111

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:05 AM +

i believe the UPROPERTY(...) part is what exposes it to the editor, though i'm not entirely sure.

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

1 answer: sort voted first

Yes, you need to add the UPROPERTY() macro and the Category keyword when declaring the variable in your class's header file (`.h` file) in order for it to show in the editor, i.e:

 UPROPERTY(Category=MyCategory)
 float MyProperty;

Edit: I should read the whole question! You may also need to use one of the Blueprint keywords (BlueprintReadWrite, etc.) depending on your use case. I don't have Rocket in front of me to look up the exact names, but they should all be listed in ObjectBase.h, which I think you can see in the external references in Visual Studio.

more ▼

answered Mar 11 '14 at 02:05 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3658 1983 9111

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:05 AM

Just the answer I was looking for Jeff!

Thank you, I'll implement that now!

(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