Hey,
I’m trying to use a DataTbale where one of the fields is a blueprint subclass of AMyActor
.
In the Table Row struct (subclass of FTableRowBase
) I’ve added a field
TSoftClassPtr<AMyActor> MyClass;
In the csv file I’m using a reference to the blueprint (right-click → Copy reference) and it seems importing normally – in the table overview I see this field is filled.
In my code, I’m trying to use this MyClass
field to spawn actor:
SpawnActor<AMyActor>(MyClass.Get())
but constantly getting the warning:
SpawnActor failed because no class was specified
At the same time
MyClass.IsValid() == false
MyClass.IsNull() == false
MyClass.IsPending() == false
Tried to call MyClass.LoadAsynchronous()
but it have no effect.
Am I doing something wrong? How can I spawn actor from a class defined via a data table?