Navigation
API > API/Editor > API/Editor/GraphEditor > API/Editor/GraphEditor/KismetPins
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SBorder
- SGraphPin
- SGraphPinStructInstance
References
| Module | GraphEditor |
| Header | /Engine/Source/Editor/GraphEditor/Public/KismetPins/SGraphPinStructInstance.h |
| Include | #include "KismetPins/SGraphPinStructInstance.h" |
Syntax
class SGraphPinStructInstance : public SGraphPin
Remarks
Example implementation:
struct FDataTypeEditWrapper : public FPinStructEditWrapper {
FDataType Data;
virtual FText GetPreviewDescription() const override { return Data.ToText(); } virtual const UScriptStruct* GetDataScriptStruct() const override { return FDataType::StaticStruct(); } virtual uint8* GetDataMemory() override { return (uint8*)&Data; } }; This is a pin for showing a details customization for a struct instance. It can be used directly by passing in a StructEditWrapper parameter when creating from a pin factory Or, it can be subclassed for other types of struct display
Variables
| Type | Name | Description | |
|---|---|---|---|
| FText | CachedDescription | Cached description text | |
| TSharedPtr< SComboButton > | ComboButton | Combo Button widget used to show edit content | |
| TSharedPtr< FStructOnScope > | EditWrapperInstance | Instance of FPinStructEditWrapper that wraps what we actually want to edit | |
| TSharedPtr< IStructureDetailsView > | StructureDetailsView | Details view that points into EditWrapperInstance |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs, |
||
| FText | Slate accessor to shows cached description value | ||
| TSharedRef< SWidget > | Creates widget for displaying preview on the pin | ||
| TSharedRef< SWidget > | Creates widget used to edit the struct instance | ||
| FPinStructEditWrapper * | Returns the base instance inside EditStruct, if null this is assumed to be a subclass that overrides other functions | ||
| void | Parses the struct ata from the pin to fill in the struct instance | ||
| void | PropertyValueChanged
(
const FPropertyChangedEvent& PropertyChangedEvent |
Called when struct is modified by the details view | |
| void | Refreshes cached description and edit data after an edit change | ||
| void | Call to push changes from edit instance to pin |
Overridden from SGraphPin
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< SWidget > | Build the widget we should put into the 'default value' space, shown when nothing connected |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |