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"

USTRUCT properties with UPROPERTY vanished?

So I have this code:

 USTRUCT(blueprintable)
 struct FTileSystemTilePartState
 {
     GENERATED_USTRUCT_BODY()
 public:
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Tile System")
     TSubclassOf<ATileSystemBaseTilePart> TilePartClass;
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Tile System", NoRep)
     bool RandomizeTilePartClass = true;
     
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Tile System")
     bool LightSourceIsActive;
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Tile System")
     bool DoorIsLocked;
 };
 

For some reason ONLY TilePartClass is showing up in the editor details window, it was working fine earlier it just started doing this randomly after I closed and reopened the editor.

Product Version: UE 4.10
Tags:
more ▼

asked Jan 20 '16 at 06:08 AM in C++ Programming

avatar image

MiDri
38 5 7 11

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

1 answer: sort voted first

The issue was the use of the undocumented UPROPERTY NoRep, caused the rest of the UPROPERTYs to be ignored by the compiler... UGHHHH I really wanted NoRep to work too, would save a bit of bandwidth not transmitting useless properties.

more ▼

answered Jan 20 '16 at 07:23 AM

avatar image

MiDri
38 5 7 11

avatar image darkgaze Aug 29 '17 at 04:41 PM

For me, it doesn't even show simple ints inside the struct. Using UPROPERTY on them, then declaring a UPROPERTY variable for a class using this new Struct type ... Not showing up. Either that, or just a category but nothing inside it. No value.

(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