Announcement

Collapse
No announcement yet.

How get variables names of Blueprint Class if I have path to file of this Blueprint Class?

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

    How get variables names of Blueprint Class if I have path to file of this Blueprint Class?

    How get Blueprint Class variable name (function name) if I have path to file of this Blueprint Class (or DataEnum, Structure)?
    I creating documentation for a Blueprints asset. I have paths to all files in this asset (TArray<FString> SomeArrayOfPaths).
    How get information (at least names) inside file (Blueprint Class, DataEnum, Structure etc.) about variables, functions, events etc.? I want to get these names as FString.
    Last edited by fill_n; 06-24-2020, 12:51 PM.

    #2
    Try learning about Asset Registry and soft object references as a start.
    With Asset Registry you can get a pointer to an asset, Cast<>() to UBlueprint, get BP->GeneratedClass pointer and with FieldIterator<> you can access blueprint variables or functions from that blueprint.
    | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

    Comment

    Working...
    X