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"

Get the Uobject in the Details Pandel Customization

I have a UObject that shouldn't be directly edited. Instead, I want to create, for the User, a separate window where the UObject can be edited correctly and any errors and can be found before the game is played. For that I need to edit the Details panel for that UObject type.

So, I am using a details panel customization (derived from IPropertyTypeCustomization ). Instead of being able to pick an asset, the Content part (right side) has a button that opens up a window. However, I cannot find out two things:

1) How to access the UObject inside the CustomizeHeader function. The function provides a IPropertyHandle but I am not sure how to get a pointer to the UObject I created.

2) How to send the UObject pointer and the pointer to the AActor will holds this UObject to the window so it can place a newly created UObject inside, once the creation process inside the window is done.

Product Version: UE 4.9
Tags:
more ▼

asked Dec 12 '15 at 09:52 AM in C++ Programming

avatar image

Executron
16 2 4 9

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

1 answer: sort voted first

The answer turned out to be simple. IPropertyHandle has a function called GetValue . All I needed to do was call this and supply a UObject pointer as the argument.

 UObject* Value;
 FPropertyAccess::Result R =  StructPropertyHandle->GetValue(Value);

:)

more ▼

answered Dec 12 '15 at 04:49 PM

avatar image

Executron
16 2 4 9

(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