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"

UPROPERTY() TArray of UTexture2D is editable in the details panel, but remains empty in memory

I have a TArray that I expose to the default editor of a custom UObject. The TArray is showing up in the details panel exactly as it should, but when I create breakpoints and check the values inside the Array, it is empty, no matter how many textures I add in the UI (See Screenshots). Here is How I have the Array Declared:

 UPROPERTY(Category=Custom, EditAnywhere, AssetRegistrySearchable, meta=(DisplayName="Textures"))
     TArray<UTexture2D*> texs;

Is there perhaps some saving, or committing changes I have to do within the classes corresponding AssetActions Class?

Edit: Realized I wasn't constructing the TArray before trying to use it, and thought that that may be problem. However, Now I initialize the TArray when this Object is Constructed, and it's still empty no matter what I add in the Details Panel. alt text alt text

Product Version: UE 4.19
more ▼

asked Aug 21 '18 at 12:04 AM in C++ Programming

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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