Can FInstancedStruct be created/edited in python?

I can’t find a way to create or edit an instanced struct in python, is it even possible?

I’m on 5.4, I see StructUtilsFunctionLibrary has been renamed to BlueprintInstancedStructLibraryon 5.5, but it doesn’t seem to have any new functions.

`struct_data = unreal.Vector()
struct_data.set_editor_property(“x”, 99)
print(struct_data)

These don’t work:

unreal.StructUtilsFunctionLibrary.make_instanced_struct(struct_data)

inst = unreal.InstancedStruct(struct_data)

inst = unreal.InstancedStruct()

Not valid

print(unreal.StructUtilsFunctionLibrary.is_instanced_struct_valid(inst))
unreal.StructUtilsFunctionLibrary.reset(inst, unreal.Vector.static_struct())

Still not valid

print(unreal.StructUtilsFunctionLibrary.is_instanced_struct_valid(inst))

inst.set_editor_property(“x”, 99)

inst.x`

Hi Pablo,

It isn’t possible to use python to create or edit InstancedStruct at this time. The BlueprintInstancedStructLibrary uses `CustomThunk` functions which cannot be exposed to Python as they rely on the Blueprint Bytecode and running within the BP VM.

BlueprintInstancedStructLibrary was part of the move for the StructUtils plugin into the core engine so that the engine and plugins don’t need to rely upon the StructUtils plugin as it was ubiquitously used.

Logan