Navigation
API > API/Plugins > API/Plugins/ScriptableToolsFramework > API/Plugins/ScriptableToolsFramework/UScriptableInteractiveTool
Description
Watch an Enum-valued Property for changes. Note that in this case the OnModified delegate will be called with a uint8 integer, which can be cast back to the original Enum type.
| Name | WatchEnumProperty |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Public/ScriptableInteractiveTool.h |
| Include Path | #include "ScriptableInteractiveTool.h" |
| Source | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Private/ScriptableInteractiveTool.cpp |
UFUNCTION (BlueprintCallable, Category="ScriptableTool|PropertySets")
UScriptableInteractiveToolPropertySet * WatchEnumProperty
(
UScriptableInteractiveToolPropertySet * PropertySet,
FString PropertyName,
const FToolEnumPropertyModifiedDelegate & OnModified
)
Parameters
| Name | Remarks |
|---|---|
| PropertySet | the Property Set which contains the desired Property to watch. |
| PropertyName | the string name of the Property in the given Property Set |
| OnModified | this delegate will be called if the Property value changes. |