#include <EditorInteractionSystemViewportSelectionRequestBus.h>
Inherits AzToolsFramework::ViewportInteraction::InternalViewportSelectionRequests.
Interface for system component implementing the ViewportSelectionRequests interface. This interface also includes a setter to set a custom handler also implementing the ViewportSelectionRequests interface to customize editor behavior.
◆ GetEntityDataCache()
GetEntityDataCache enables callers to get access to the current entity data cache. No assumptions should be made about the lifetime of this pointer, it may get destroyed and recreated every time the Editor interaction handler is changed.
◆ SetDefaultHandler()
virtual void AzToolsFramework::EditorInteractionSystemViewportSelection::SetDefaultHandler |
( |
| ) |
|
|
pure virtual |
SetDefaultHandler is a utility function to set the default editor handler (currently EditorDefaultSelection). This is useful to call after setting another mode and then wishing to return to normal operation of the editor.
◆ SetHandler()
virtual void AzToolsFramework::EditorInteractionSystemViewportSelection::SetHandler |
( |
const ViewportSelectionRequestsBuilderFn & |
interactionRequestsBuilder | ) |
|
|
pure virtual |
SetHandler takes a factory function to create a new type implementing the ViewportSelectionRequests interface. It provides a handler implementing ViewportSelectionRequests to handle all viewport mouse input and drawing.
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/ViewportSelection/EditorInteractionSystemViewportSelectionRequestBus.h