So I’m having a bit trouble when trying to create a custom K2 node, and I was one might be able to help (on some of the questions at least).
In short, I’m creating a (sort of) replica of the input action/axis nodes.
- It seems InputActionEvent is using a custom event to start the BP chain, but I couldn’t find where it’s declared/created. [TABLE]
InputActionEvent->CustomFunctionName = FName( *FString::Printf(TEXT(“InpActEvt_%s_%s”), *InputActionName.ToString(), *InputActionEvent->GetName()));
When calling CreatePin() ( in AllocateDefaultPins ) I was trying to create a pin of type enum. However, if I use PC_Enum, The result pin seems to be colored weirdly. It seems only PC_Byte works. Any idea why? (both calls were made with UEnum to my enum in PinSubCategoryObject)
I’m trying to spawn a node with literal value, but from code rather than BP. That is, each one of my nodes has a value (let’s say even an index), and I want the node to have an output pin of type integer, <bold>with that value<bold>. I tried using UK2Node_Literal, but couldn’t figure out how (or even if it’s possible?) to set an actual literal value.
I did notice UK2Node_Literal (and some other nodes) are having a node handler, which registers “nets” and uses FBPTerminal. What is that “Net”? what are those “FBPTermina”? what are they used to and how? (I suspect it may be possible to solve my #3 question with that, but I’m not entirely sure. Either way I would love to know)