Hello!
I’m trying to implement custom asynchronous K2Node and using UK2Node_BaseAsyncTask as a parent class for that. This way I should provide proxy object that will be created at runtime when my node is actually executed. This part is working perfectly.
Then I want to add some u-properties to the declaration of this K2Node, so that they will be available in the corresponding details panel when node is selected. That works as well, you should only override the ShouldShowNodeProperties method in the node.
After that I would like to have one of these u-properties to be an array of instanced u-objects, so that their exposed variables will be available for setup in details panel as well. That’s working out-of-box as well:
UPROPERTY(EditAnywhere, Instanced)
TArray<class UObject*> InstancedObjects;
So the main question: what is the correct way to pass this array of objects to the proxy object? Node itself doesn’t exist at runtime AFAIU. Does it mean I need to expand my node’s graph to include ConstructObject nodes, that would use InstancedObjects property during compilation (access actual classes and values for all exposed variables), then collect them into array and link to the proxy object? So that proxy object will get not the InstancedObjects, but their copy?
Am I missing something? Is there any existing node with similar functionality that I can use as a reference?
Thanks in advance!