Announcement

Collapse
No announcement yet.

[Solved] Parent Class of an Asset

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Solved] Parent Class of an Asset

    When you hover the mouse over any asset in the editor, you get something like the image bellow.

    How can I get the the parent class, or native parent class, in C++ the way it's shown in the editor given an UObject (in this case BTTask_BlueprintBase or even AIModeule.BTTask_BlueprintBase)?

    For the exact same asset shown in the image, I tried all of these options:

    Object->GetClass()->GetName() it returned "Blueprint".

    Object->GetClass()->GetSuperClass()->GetName() it returned "BlueprintCore".
    Attached Files

    #2
    I've found the solution, and it was easier than I thought. Object->GetDesc() returns a FString with the Parent Class information I needed.

    Comment

    Working...
    X