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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

exposing a variable doesnt seem to work

trying to get my head round this c++/blueprint relationship im doing some simple tests and they dont seem to work. starting with the 3rd person demo, as i understand from the documentation, to expose a variable in the editor you declare it in the header .h file like this Code:

class AMyProject3Character : public ACharacter { GENERATED_UCLASS_BODY()

 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=MyCamera) //this is my test var
 float CameraDistance;

but it doesnt show up in the blueprint?

Product Version: Not Selected
Tags:
more ▼

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

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1994 9120

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

2 answers: sort voted first

Glad you worked it out! Variables certainly show up in debug (I usually run that way), you just need to make sure you are running the version you built. I usually use VS to launch Rocket, to make sure of that.

more ▼

answered Mar 11 '14 at 02:07 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1994 9120

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

ok fixed it

in visual studio Menu> Build - Configuration Manager > Active Solution Configuration, set to Development :)

more ▼

answered Mar 11 '14 at 02:07 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3666 1994 9120

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

Thanks for this. That seems to have answered an earlier problem I had as well. Although having the variables not expose in debug is something of a curiosity. I wonder why you have to change the modes to make that stuff work?

(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