What’s the proper way to write an asset utility script to update parent socket attachments for a static mesh component in a blueprint asset template? Currently testing either using blueprint nodes or the python API.
From what I’ve tried:
AttachComponentToComponent()
doesn’t work since it expects a level instance.- using the SubObject Data subsystem-> converting handles to objects →
SetEditorProperty()
forAttachSocket
also doesn’t work either since they are private variables in C++ (same thing is true forAttachParent
).
If that’s not possible, is there a C++ way to do it? I’m looking for ways to help automate setting up blueprint assets. (For example, you can’t select multiple SM components to specify the attach socket together).
Thanks,
Raymond