Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObject
- UGizmoElementBase
- UGizmoElementLineBase
- UGizmoElementGroup
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementGroup.h |
| Include | #include "BaseGizmos/GizmoElementGroup.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class UGizmoElementGroup : public UGizmoElementLineBase
Remarks
Simple group object intended to be used as part of 3D Gizmos. Contains multiple gizmo objects.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bConstantScale | When true, maintains view-dependent constant scale for this gizmo object hierarchy. | |
| bool | bHitOwner | When true, this group is treated as a single element such that when LineTrace is called, if any of its sub-elements is hit, this group will be returned as the owner of the hit. | |
| TArray< TObjectPtr< UGizmoElementBase > > | Elements | Gizmo elements within this group. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
UGizmoElementBase* InElement |
Add object to group. | |
| void | ApplyUniformConstantScaleToTransform
(
double PixelToWorldScale, |
Updates input transform's scale component to have uniform scale and applies constant scale if bConstantScale is true. | |
| bool | |||
| bool | GetHitOwner () |
||
| FInputRayHit | LineTrace
(
const UGizmoViewContext* ViewContext, |
||
| void | Remove
(
UGizmoElementBase* InElement |
Remove object from group, if it exists. | |
| void | Render
(
IToolsContextRenderAPI* RenderAPI, |
||
| void | SetConstantScale
(
bool InConstantScale |
When true, maintains view-dependent constant scale for this gizmo object hierarchy. | |
| void | SetHitOwner
(
bool bInHitOwner |
Set whether this group should be treated as a hit owner and its part identifier returned when any of its sub-elements are hit. |
Overridden from UGizmoElementBase
| Type | Name | Description | |
|---|---|---|---|
| TOptional< bool > | GetPartHittableState
(
uint32 InPartIdentifier |
Get element's hittable state for element associated with the specified gizmo part, if part was found. | |
| TOptional< EGizmoElementInteractionState > | GetPartInteractionState
(
uint32 InPartIdentifiero |
Get element's interaction state for element associated with the specified gizmo part, if part was found. | |
| TOptional< bool > | GetPartVisibleState
(
uint32 InPartIdentifier |
Get element's visible state for element associated with the specified gizmo part, if part was found. | |
| bool | UpdatePartHittableState
(
bool bHittable, |
Update group and contained elements' hittable state for elements in specified gizmo parts, return true if part was found. | |
| bool | UpdatePartInteractionState
(
EGizmoElementInteractionState InInteractionState, |
Update group and contained elements' interaction state for elements in specified gizmo parts, return true if part was found. | |
| bool | UpdatePartVisibleState
(
bool bVisible, |
Update group and contained elements' visibility state for elements in specified gizmo parts, return true if part was found. |