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 class defaults node not listing texture - alternative?

Hi,

I have a small class inheriting from UObject. It has two members:

 public:
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite)
         FString ItemName;
 
     UPROPERTY(EditAnywhere, BlueprintReadWrite)
         UTexture2D* ItemThumbnail;

So there is a design feature in UE4 where a UTexture2D will not appear in the Default Class node outputs. The ItemName string appears just fine.

I am completely okay with this, but what is the alternative? I can't think of any other way to expose my UTexture2D to blueprints.

Thank you!

Product Version: UE 4.12
Tags:
more ▼

asked Nov 08 '16 at 02:41 AM in Blueprint Scripting

avatar image

Denzel Jerry
27 4 7 9

avatar image SyedAman Oct 07 '18 at 04:07 PM

Bump. Just ran into this. Need a way to store information on a Character such as Icon, so I need a Texture variable to be in the Class Defaults so I can populate a Widget based on the Class Defaults

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

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