Navigation
API > API/Editor > API/Editor/UnrealEd
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorViewportSelectability.h |
| Include | #include "EditorViewportSelectability.h" |
Syntax
class FEditorViewportSelectability
Remarks
Manages level actor viewport selectability and hovered visual states. Contains static methods to enable outside modules to implement their own management.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSelectionLimited | ||
| TMap< TWeakObjectPtr< UPrimitiveComponent >, TOptional< FColor > > | HoveredPrimitiveComponents | Hovered primitives and their last overlay color before we apply the hover overlay | |
| TOptional< EMouseCursor::Type > | MouseCursor | Mouse cursor to display for the viewport when selection is limited. | |
| FOnGetWorld | OnGetWorld | ||
| FOnIsObjectSelectableInViewport | OnIsObjectSelectableInViewportDelegate | Delegate used to check if an object is selectable in the viewport |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEditorViewportSelectability
(
const FOnGetWorld& InOnGetWorld, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | BoxSelectWorldActors
(
FBox& InBox, |
Selects or deselects all actors in a level world that are inside a defined box. | |
| void | |||
| bool | DoesActorIntersectBox
(
const AActor& InActor, |
||
| bool | DoesActorIntersectFrustum
(
const AActor& InActor, |
||
| void | DrawEnabledTextNotice
(
FCanvas*const InCanvas, |
||
| void | EnableLimitedSelection
(
const bool bInEnabled |
Enables or disables the selectability tool | |
| bool | FrustumSelectWorldActors
(
const FConvexVolume& InFrustum, |
Selects or deselects all actors in a level world that are inside a defined convex volume. | |
| bool | GetCursorForHovered
(
EMouseCursor::Type& OutCursor |
||
| FText | GetLimitedSelectionText
(
const TSharedPtr< FUICommandInfo >& InToggleAction, |
||
| bool | HandleClick
(
FEditorViewportClient*const InViewportClient, |
||
| bool | IsActorInLevelHiddenLayer
(
const AActor& InActor, |
||
| bool | IsActorSelectableClass
(
const AActor& InActor |
||
| bool | IsObjectSelectableInViewport
(
UObject*const InObject |
||
| bool | |||
| bool | SelectActorsByPredicate
(
UWorld*const InWorld, |
Selects or deselects actors in a world. | |
| void | UpdateHoveredActorPrimitives
(
AActor*const InActor |
Updates an actors hovered state and visuals. | |
| bool | UpdateHoveredActorPrimitives
(
const bool bInSelectedLimited, |
Updates an actors hovered state and visuals. | |
| bool | UpdateHoveredPrimitive
(
const bool bInSelectedLimited, |
Updates a list of hovered primitive component's hovered state and visuals | |
| void | UpdateHoverFromHitProxy
(
HHitProxy*const InHitProxy |
||
| void | UpdatePrimitiveVisuals
(
const bool bInSelectedLimited, |
Updates a single primitive component's hovered state and visuals. | |
| void | UpdateSelectionLimitedVisuals
(
const bool bInClearHovered |
Updates hover visual states based on current selection limiting settings |
Constants
| Name | Description |
|---|---|
| DefaultLimitedSelectionText | Default text to display in the viewport when selection is limited as a helpful reminder to the user. |