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"

Can't select blueprint extending C++ class in class defaults.

I have a c++ class containing 2 TArrays and extended it with a blueprint to edit easiliy the defaults values. After having created my blueprint, I tried to select it from the drop-down menu in one of my other blueprints, but it didn't show up. Here is the code in my header file extended by the container blueprint :

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lullaby : Plants")

UCropParamsMap* CropParamsMap;

In the blueprint that I try to reference, I can clearly see the "Parent class : CropParamsMap" in the top right of the blueprint editor. This uclass is also specified as "Blueprintable".

I think that the editor is not considering the blueprint as an instance of the UCropParamsMap class, but I am not sure.

Product Version: Not Selected
more ▼

asked May 12 '16 at 09:28 PM in Bug Reports

avatar image

10 5 6 9

avatar image Doug E ♦♦ STAFF May 13 '16 at 02:38 PM

Hey Dathanar-

Just to make sure I understand what you're attempting, you have a blueprint based on a custom class where the 2 arrays are defined. You also have a second class that has a pointer to your first class. Then, from a blueprint of the second class, you attempt to reference the first in order to use the arrays, is that correct?

avatar image MutualWolf May 13 '16 at 02:45 PM

Hey Doug,

Thanks for the quick answer! Yes that's exactly it.

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

1 answer: sort voted first

When using the syntax described in your original post, the drop-down list will only populate with instances of the specified class that are present in the viewport. If you want to set your pointer to the blueprint itself rather than a specific instance of the blueprint, you'll want to use TSubclassOf rather than UCropParamsMap*.


Doug Wilson

more ▼

answered May 13 '16 at 04:04 PM

avatar image MutualWolf May 13 '16 at 04:40 PM

Can't believe I forgot that! For some reason I thought blueprints were considered to be instances of the base class. What I'll do is simply change the type to TSubclassOf and create an instance of the class at runtime. Thanks!

(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