Navigation
API > API/Plugins > API/Plugins/LightGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveGizmo
- UScalableConeGizmo
References
| Module | LightGizmos |
| Header | /Engine/Plugins/Experimental/GizmoEdMode/Source/LightGizmos/Public/ScalableConeGizmo.h |
| Include | #include "ScalableConeGizmo.h" |
Syntax
UCLASS&40;&41;
class UScalableConeGizmo :
public UInteractiveGizmo,
public IHoverBehaviorTarget
Remarks
UScalableConeGizmo provides a cone that can be scaled (changing its angle) by dragging the base of the cone outwards/inwards
Variables
| Type | Name | Description | |
|---|---|---|---|
| FColor | ConeColor | The color of the cone. | |
| float | HitErrorThreshold | The error threshold for hit detection with the cone. | |
| float | MaxAngle | The maximum angle the cone can be stretched to. | |
| float | MinAngle | The minimum angle the cone can be stretched to. | |
| FText | TransactionDescription | The text that will be used as the transaction description for undo/redo. | |
| TFunction< void(const float)> | UpdateAngleFunc | Called when the Angle of the cone is changed. Sends new angle as parameter. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | |||
| float | GetLength () |
||
| bool | HitTest
(
const FRay& Ray, |
Check if the input ray hits the cone. | |
| void | OnBeginDrag
(
const FInputDeviceRay& Ray |
||
| void | OnEndDrag
(
const FInputDeviceRay& Ray |
||
| void | OnUpdateDrag
(
const FInputDeviceRay& Ray |
||
| void | SetAngleDegrees
(
float InAngle |
Gettors and Settors for the Angle and Length. | |
| void | SetLength
(
float InLength |
||
| void | SetTarget
(
UTransformProxy* InTarget |
Set the target to attach the gizmo to. |
Overridden from UInteractiveGizmo
| Type | Name | Description | |
|---|---|---|---|
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Gizmo to do any custom drawing (ie via PDI/RHI) | |
| void | Setup () |
Called by GizmoManager to initialize the Gizmo after GizmoBuilder::BuildGizmo() has been called |
Overridden from IHoverBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | BeginHoverSequenceHitTest
(
const FInputDeviceRay& PressPos |
Do hover hit-test | |
| void | OnBeginHover
(
const FInputDeviceRay& DevicePos |
Initialize hover sequence at given position | |
| void | OnEndHover () |
Terminate active hover sequence | |
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
Update active hover sequence with new input position |