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"

Custom Structs in UI

Hi,

I was trying to make arrays of custom structs editable via the UI.

Currently inside the UI an array of the custom structs looks like this.

alt text

And my struct has the following definition

 UENUM()
 enum EJointType
 {
     BALL_AND_SOCKET,
     HINGE,
     DISTANCE
 };
 
 USTRUCT()
 struct FJointConstraint
 {
     GENERATED_USTRUCT_BODY()
 
     FString                                    JointName;
     TArray<TEnumAsByte<enum EJointType>> JointType;
 };
 

How would I go about to make the fields of the struct editable via the UI ?

Many thanks !

Best,

darkZ

Product Version: Not Selected
Tags:
more ▼

asked May 29 '14 at 09:46 PM in C++ Programming

avatar image

darkZ
263 19 21 38

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

1 answer: sort voted first

Hi darkZ,

What you want to do can be accomplished with a so called Detail Customization, which is a special class deriving from IDetailCustomization that you can register and which tells the details view how to present your structured data.

There are many examples of such customizations in the code base. In particular, many of the built-in struct types have customizations implemented in the DetailCustomizations module. Some other modules, as well as plug-ins also implement customizations. Just search for IDetailCustomization and you should find plenty of inspiration for very simple and very complex use cases!

more ▼

answered May 29 '14 at 10:31 PM

avatar image darkZ May 29 '14 at 10:32 PM

Many thanks for the quick and detailed reply. This seems like it would work. I will try it out and if doesn't work then I will come back with more questions :) I will mark the question as answered for now. Thanks again.

(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