How to create TSubobjectPtr of a blueprint class
I have a c++ class called "Inventory"
I extended it to a blueprint object.
I want to make a TSubobjectPtr of the blueprint class. How do I do it?
Why do you want it to be subobject ?
In anycase TSubobjectPtr is used to create well, sub objects. Subobjects are created on object construction. I don't think that creatading Subobject out of blueprint class is possible. Though I might be wrong.
Why not create normal pointer, and then spawn object from blueprint to it ?
Eventually why not create ActorComponent, and create Subobject ?
answered Aug 11 '14 at 10:26 AM
If you could tell us a bit more about what you want to achieve, that would be nice (:
Like iniside said, why don't you use a normal Pointer? You can get the Blueprint with the ObjectFinder and Cast the Class to that Pointer.
answered Aug 11 '14 at 10:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here