Download

How to assign pin value to the property not from the local (Node) context?

I have a custom k2 node that represents an instance of an object derived from UObject. My object has a property which I want to modify through the pin in my node. I have custom FNodeHandlingFunctor and here is some code related to this.


		
FBlueprintCompiledStatement& Statement = Context.AppendStatementForNode(Node);
Statement.Type = KCST_Assignment;
Statement.LHS = *VariableTerm;
Statement.RHS.Add(*ValueTerm);


And the question is how to link VariableTerm to my object property. I could get UProperty of my field and the instance of an object that contains this property but how to configure FBPTerminal to use it. Or maybe there is another way to say blueprint compiler which property to use to write value in it from the given pin?