#include <ComponentEntitySelectionBus.h>
Inherits AZ::ComponentBus.
|
virtual AZ::Aabb | GetEditorSelectionBoundsViewport (const AzFramework::ViewportInfo &viewportInfo) |
| Returns an AABB that encompasses the object.
|
|
virtual bool | EditorSelectionIntersectRayViewport (const AzFramework::ViewportInfo &viewportInfo, const AZ::Vector3 &src, const AZ::Vector3 &dir, float &distance) |
| Returns true if editor selection ray intersects with the handler.
|
|
virtual bool | SupportsEditorRayIntersect () |
| Returns if the component overrides EditorSelectionIntersectRay(Viewport) interface, otherwise selection will be based only on an AABB test.
|
|
virtual bool | SupportsEditorRayIntersectViewport (const AzFramework::ViewportInfo &viewportInfo) |
| Returns if the component overrides EditorSelectionIntersectRay(Viewport) interface, otherwise selection will be based only on an AABB test.
|
|
Bus for customizing Entity selection logic from within the EditorComponents. Used to provide with custom implementation for Ray intersection tests, specifying AABB, etc.
◆ EditorSelectionIntersectRayViewport()
virtual bool AzToolsFramework::EditorComponentSelectionRequests::EditorSelectionIntersectRayViewport |
( |
const AzFramework::ViewportInfo & |
viewportInfo, |
|
|
const AZ::Vector3 & |
src, |
|
|
const AZ::Vector3 & |
dir, |
|
|
float & |
distance |
|
) |
| |
|
inlinevirtual |
Returns true if editor selection ray intersects with the handler.
- Returns
- True if the editor selection ray intersects the handler.
- Note
- ViewportInfo may be necessary if the all or part of the object stays at a constant size regardless of camera position.
◆ GetEditorSelectionBoundsViewport()
virtual AZ::Aabb AzToolsFramework::EditorComponentSelectionRequests::GetEditorSelectionBoundsViewport |
( |
const AzFramework::ViewportInfo & |
viewportInfo | ) |
|
|
inlinevirtual |
Returns an AABB that encompasses the object.
- Returns
- AABB that encompasses the object.
- Note
- ViewportInfo may be necessary if the all or part of the object stays at a constant size regardless of camera position.
◆ SupportsEditorRayIntersectViewport()
virtual bool AzToolsFramework::EditorComponentSelectionRequests::SupportsEditorRayIntersectViewport |
( |
const AzFramework::ViewportInfo & |
viewportInfo | ) |
|
|
inlinevirtual |
Returns if the component overrides EditorSelectionIntersectRay(Viewport) interface, otherwise selection will be based only on an AABB test.
- Note
- Overload of SupportsEditorRayIntersect which accepts a ViewportInfo containing the ViewportId, this can be used to lookup the intersection setting per viewport.
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/API/ComponentEntitySelectionBus.h