March 2019
Intermediate to advanced
708 pages
17h 9m
English
Customizing how objects appear as literal values on Blueprint pins is done using the FGraphPanelPinFactory class.
This class defines a single virtual function:
virtual TSharedPtr<class SGraphPin> CreatePin(class UEdGraphPin* Pin) const
The function of CreatePin, as the name implies, is to create a new visual representation of the graph pin.
It receives a UEdGraphPin instance. UEdGraphPin contains information about the object that the pin represents so that our factory class can make an informed decision regarding which visual representation we should be displaying.
Within our implementation of the function, we check that the pin's type is our custom class.
We do this by looking at the PinSubCategoryObject property, which ...
Read now
Unlock full access