I know that we can use ‘NewObject with UClass*’ to create instance of some class that inherited from UObject like code below.
UClass* ClassType = SomeObject->GetClass();
auto NewInstance = NewObject(this, ClassType);
However I want to create instance of some struct with UStruct(UScriptStruct).
But NewObject function only can be used to create a instance of class inherited from UObject.
If you’re looking for something that doesn’t require a plugin you may be able to use TStructOnScope as well. The major difference is probably that FInstancedStruct is supported by reflection and that the plugin is experimental. But other than that I’m not too familiar with the differences between the two.