Download

How to edit blueprint asset component`s variable in python?

Hi, everyone,I want to edit the blueprint asset component`s variable in python, but the ‘get_editor_propery’ is founding a NONE value. Here is my code

import unreal

blueprint_generated = unreal.EditorAssetLibrary.load_blueprint_class("/Game/Blueprints/Characters/MyBP.MyBP")
blueprint_class_default = unreal.get_default_object(blueprint_generated)

print(blueprint_class_default.get_editor_property("MySkeletonComponent"))