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.
Is there a class or property specifier i need to set for it to be found ?
Hi Duncan,
Are you still needing help with this issue?
Oh, thanks, no need, i’ve already found other way.
Can you post this way as answer so everyone can see it?
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.