How to get a reference to the object in which I run the k2 node?
I’m trying like this but it doesn’t work without a direct connection to self.
Hi,
If you just want the blueprint that has the node you could just do UBlueprint* graph = nodek2->GetBlueprint()
or if you want the object connected to the Self pin Pin->DefaultObject
But I don’t think you need to run anything like SetPinAutogeneratedDefaultValue
to get the Self pin to work.