Hi,
How do I get the parent class from a list of blueprints?
i.e Blueprint Actor Class, Character, Pawn Class. etc?
I can’t find the method that will return ‘Actor’, ‘Character’ , ‘Pawn’ as the class.
I tried asset_class in AssetRegistryHelpers but that yields the same result of Blueprint.
Appreciate any help!
# select blueprints in content folder
# run script
import unreal
for sel in unreal.EditorUtilityLibrary().get_selected_assets():
print sel.get_class()
print sel.get_class().get_name()
LogPython: <Object ‘/Script/Engine.Blueprint’ (0x000001E63136B600) Class ‘Class’>
LogPython: Blueprint
LogPython: <Object ‘/Script/Engine.Blueprint’ (0x000001E63136B600) Class ‘Class’>
LogPython: Blueprint
LogPython: <Object ‘/Script/Engine.Blueprint’ (0x000001E63136B600) Class ‘Class’>
LogPython: Blueprint