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"

Engine thinks Property is not set when set in Editor

Currently I have a UPROPERTY in a C++ class as follows:

 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Citizen")
         AActor* Bed;

This serves as a reference to this actor's bed.

Then, in game, I set the dropdown list to the proper actor. This is fine for a while.

However, after a few compiles or a certain amount of time (I am unsure what triggers this) I get the following error:

 IE:Error: Error Blueprint Runtime Error: Attempted to access missing property. If this is a packaged/cooked build, are you attempting to use an editor-only property?

If I simply hit "compile" in the offending blueprint, all is fixed (even though there was no change), but this is quite annoying if I have many blueprints that use this variable.

This tends to especially happen in blueprints relating to behavior trees (BTT, BTS, etc).

Is this an issue with HotReload/UE4 compiling? Or is there another way to get around this?

Here's an image showing that the property is set despite the error:

alt text

Product Version: UE 4.16
Tags:
more ▼

asked Jul 16 '17 at 12:14 AM in C++ Programming

avatar image

Itilos
10 2 3 6

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

1 answer: sort voted first

Har to tell but yes could be Hotreload related. Close the Editor Compile your Project from VS. Try again. If that did not do the trick nuke the Intermediate folder and Compile from VS again. Report back if that solved it for you.

more ▼

answered Jul 16 '17 at 01:19 AM

avatar image

Nachtmahr
6.9k 143 24 168

(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