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"

[bug] ? Defining UPROPERTY as readwrite/editanywhere still is readonly

I have a property declared in my C++ code as follows:

 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Gameplay", meta = (AllowPrivateAccess = "true"))
 uint32 NumToSpawn;

When I look at the defaults tab of my blueprint that derives from this C++ class, NumToSpawn is read only and can't be edited. If I change the type to float or event int32 from uint32, magically the property becomes editable. Change the type back to uint32 and it's read only again.

I'm not sure what could be causing this but this looks like a bug. Let me know if I need to post more of the file or if there's something else I should check on.

I'm using UE 4.6.1

Product Version: Not Selected
more ▼

asked Jan 26 '15 at 02:52 AM in C++ Programming

avatar image

66 13 16 22

avatar image creasso Jan 26 '15 at 01:36 PM

By what I've seen, inside Blueprints we can use just "some" of the allowed types for compatibility. All integers created "through BP Add variable" are int32s you can check, we don't have a "subchoice" to choose between int types per variable.

It's probably a "design" choice not a BUG, since BPs shall be used also by non-coders, imagine the lots of type related troubles if they do open "too much" choices on BPs to final users.

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

1 answer: sort voted first

Thats how editor reacts to unsupported data types, only int32 and uint8(if im not mistaken) are supported by reflection system, Epic explain this as simplicity attempt.

more ▼

answered Jan 26 '15 at 01:41 PM

avatar image

37.2k 936 172 1116

avatar image creasso Jan 26 '15 at 02:38 PM

Is "uint8" the "Byte" BP variable? I'm almost declaring an ESimpleByte enum to use with my funtions LOL.

int8 throws errors, let me try this one...

avatar image creasso Jan 26 '15 at 02:44 PM

OMG!!!! Thanks Shadowriver! I was doing lots of switchs on int32s by don't get how to declare Byte variables/parameters!

Thanks, thanks, thanks!! Thousand cookies to you! LOL

(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