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. 

Strange blueprint struct names in C++ code (Blueprint and C++ structs differs)

I passed blueprint structure to my method. I need to get all defined names of properties in this struct, so I'm iterating with TFieldIterator by this structure, and as I see all property names has a little strange names, such as MyProp_16_C43D413D448CA1DC6F9EECA5ECE0DE4E. But I need get normal name (without number and hex code) and I can't split string by "" symbols, because I need to use also C++ USTRUCTS (not only Blueprint) and in both situations I need use "" symbol in special purposes.

Also I tried FindPropertyByName, but it's not a chance.

Are there any ways to get normal struct name?

alt text

Product Version: UE 4.11
Tags:
fname.png (38.2 kB)
more ▼

asked Jun 03 '16 at 09:23 AM in C++ Programming

avatar image

broly
564 44 64 92

avatar image liuwei Sep 10 '17 at 10:46 AM

Hi,do you find any solution for this issue? I have also got this problem.

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

1 answer: sort voted first

I found the solution for this.

I used UField::GetDisplayNameText() and converts FText result to FString ( FText::ToString() ). But I don't know how this will behave in shipping build. This method returns an FText which used in localization system. Probably due to this it can be changed in some build types.

Be careful with this.

more ▼

answered Sep 11 '17 at 08:43 AM

avatar image

broly
564 44 64 92

(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