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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why can't I find blueprint of custom class?

Hi, I made one custom class from UObject like this

 UCLASS(Blueprintable, BlueprintType)
 class UGrounder : public UObject

Then i create the blueprint with UGrounder as a parent. In other script i create a variable

 UPROPERTY(EditDefaultsOnly, Category = Test)
 class UGrounder* Grounder;

And in editor it's appear on the blueprint of the class i create, but when i click on it to find the blueprint of UGrounder, it cannot be found.

alt text

Is there a class or property specifier i need to set for it to be found ?

Product Version: Not Selected
Tags:
more ▼

asked Jun 05 '14 at 08:04 AM in C++ Programming

avatar image

Duncan Dam
3.1k 121 50 164

avatar image Tim C ♦♦ STAFF Jul 02 '14 at 10:23 PM

Hi Duncan,

Are you still needing help with this issue?

avatar image Duncan Dam Jul 03 '14 at 01:28 AM

Oh, thanks, no need, i've already found other way.

avatar image birdfreeyahoo Jul 03 '14 at 01:30 AM

Can you post this way as answer so everyone can see it?

avatar image Duncan Dam Jul 03 '14 at 02:08 AM

oh ok, just a sec

avatar image birdfreeyahoo Jul 03 '14 at 02:09 AM

Thanks, mate

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

1 answer: sort voted first

Basically, Blueprint is a class, what i want to set is an instance.

So, i add 1 more subclass is

 UPROPERTY(EditDefaultsOnly, Category = Test)
 TSubclassOf<class UGrounder> GrounderClass;

And in the BeginPlay or in initialization i instantiate a new object

 Grounder = ConstructObject<UGrounder>(GrounderClass, TEXT("Grounder"));

So now i can add any blueprint derived from UGrounder as i want.

more ▼

answered Jul 03 '14 at 02:22 AM

avatar image

Duncan Dam
3.1k 121 50 164

(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