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"

Struct inside an array 'display name' in editor?

Is there a way to predefine a display name for a struct struct in editor before its expanded?

For example have an array of struct which the struct itself has vars inside like :

  • Name

  • ValueEnum

Right now if you add a new struct to the array in editor it looks like this:

alt text

So its pretty hard to see what's inside without expanding the thing by pressing the arrow at the side of '0'. Is it possible to change the display name somehow so instead of 2 members it would show some value so you could quickly see what's inside? Something like this:

alt text

Similar to how you can do .ToString on classes in some programming languages for ease of debugging.

Product Version: UE 4.19
Tags:
more ▼

asked Jul 05 '18 at 08:02 AM in C++ Programming

avatar image

Mercus
118 8 10 163

avatar image HarryHighDef Jul 05 '18 at 08:37 AM

I think what you are hitting there is the fact that those structs are in an array. It may be possible to edit the struct properties in c++ to get what you want but I am unsure if its possible in BP.

avatar image Mercus Jul 05 '18 at 10:00 AM

Yeah I agree, it seems to be an TArray thing more than a struct thing, I just asked for structs specifically because if i could show struct property value as name instead of amount of members inside it it would just be easier.

avatar image HarryHighDef Jul 05 '18 at 10:01 AM

Some of the default unreal structs work showing you the content, IE Vectors.

Maybe dig around and see how they are handled

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

1 answer: sort voted first

After focusing more on TArrays in searching I came up with this, seems to do the job for most things, might still need an extra step for USTRUCT but its okay for array of objects :)

https://answers.unrealengine.com/questions/280364/custom-array-item-name-in-editor.html

EDIT: This actually fully works on structs too. Wonderful.

more ▼

answered Jul 05 '18 at 10:02 AM

avatar image

Mercus
118 8 10 163

(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