![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ToolContextInterfaces.h>
Public Member Functions | |
| virtual | ~IToolsContextTransactionsAPI () |
| virtual void | DisplayMessage (const FText &Message, EToolMessageLevel Level)=0 |
| virtual void | PostInvalidation ()=0 |
| virtual void | BeginUndoTransaction (const FText &Description)=0 |
| virtual void | EndUndoTransaction ()=0 |
| virtual void | AppendChange (UObject *TargetObject, TUniquePtr< FToolCommandChange > Change, const FText &Description)=0 |
| virtual bool | RequestSelectionChange (const FSelectedObjectsChangeList &SelectionChange)=0 |
Users of the Tools Framework need to implement IToolsContextTransactionsAPI so that the Tools have the ability to create Transactions and emit Changes. Note that this is technically optional, but that undo/redo won't be supported without it.
|
inlinevirtual |
|
pure virtual |
Insert an FChange into the transaction history in the current Context. It is safe but not necessary to call this between Begin/EndUndoTransaction; the FChange will be automatically inserted into a Transaction.
| TargetObject | The UObject this Change is applied to |
| Change | The Change implementation |
| Description | text description of the transaction that could be shown to user |
|
pure virtual |
Begin a Transaction, whatever this means in the current Context. For example in the Editor it means open a GEditor Transaction. You must call EndUndoTransaction() after calling this.
| Description | text description of the transaction that could be shown to user |
|
pure virtual |
Request that context display message information.
| Message | text of message |
| Level | severity level of message |
Complete the Transaction. Assumption is that Begin/End are called in pairs.
Forward an invalidation request from Tools framework, to cause repaint/etc. This is not always necessary but in some situations (eg in Non-Realtime mode in Editor) a redraw will not happen every frame. See UInputRouter for options to enable auto-invalidation.
|
pure virtual |
Request a modification to the current selected objects
| SelectionChange | desired modification to current selection |