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"

UPROPERTY on TStaticBitArray not supported?

I'm trying to create a TStaticBitArray that's a UPROPERTY, but it's giving me the error "Unrecognized type 'TStaticBitArray' ". After finding a couple others that had this issue with different variable types, I was able to get it to compile just by removing UPROPERTY.

It seems odd that it doesn't work, since I know TArray does. How can I get it to work with UPROPERTY? Is it possible? Or is there another bit array type with similar usability I can use instead?

Version: UE 4.7.1

Product Version: UE older version
Tags:
more ▼

asked May 06 '16 at 10:31 PM in C++ Programming

avatar image

Charles Stuard
13 1 2 2

avatar image Arty-McLabin Mar 06 '18 at 05:46 PM

did you find an answer to that?
same happens to me in 4.18

avatar image Kas slim Dec 09 '18 at 11:37 PM

Still experiencing this in 4.20.3 (most likely 4.21 as well). I don't need this one to be a UPROPERTY, but it's only a matter of time before that changes.

Have you tried using a non-static TBitArray?

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

1 answer: sort voted first

If UHT only give you error then yes, it means reflection system does not support it and oyu can't really do much about it, other then potentially adding support to it, which require creating UProperty class for it and modifying UHT code so it registers the property, or struct with custom panel(?). Array of bools is the closest UPROPERTY supported alternative you can get.

But ask yourself if you really need UPROPERTY()? there no property editor support anyway and type itself does not require any cleaning as it's name suggest statically declared type so everything gets deleted together with host object

more ▼

answered Dec 10 '18 at 06:46 AM

avatar image

Shadowriver
37.3k 936 172 1116

(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