Navigation
API > API/Plugins > API/Plugins/AvalancheInteractiveTools > API/Plugins/AvalancheInteractiveTools/Tools
Inheritance Hierarchy
- UObject
- IInputBehaviorSource
- UInteractiveTool
- UAvaInteractiveToolsToolBase
- UAvaInteractiveToolsActorToolBase
- UAvaInteractiveToolsActorAreaToolBase
- UAvaInteractiveToolsActorPointToolBase
- UAvaInteractiveToolsActorTool
- UAvaInteractiveToolsStaticMeshActorTool
References
| Module | AvalancheInteractiveTools |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheInteractiveTools/Public/Tools/AvaInteractiveToolsToolBase.h |
| Include | #include "Tools/AvaInteractiveToolsToolBase.h" |
Syntax
UCLASS (Abstract)
class UAvaInteractiveToolsToolBase : public UInteractiveTool
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bPerformingDefaultAction | ||
| USingleKeyCaptureBehavior * | EscapeKeyBehavior | ||
| UAvaSingleClickAndDragBehavior * | LeftClickBehavior | ||
| AActor * | PreviewActor | ||
| UAvaInteractiveToolsRightClickBehavior * | RightClickBehavior | ||
| AActor * | SpawnedActor | ||
| UAvaInteractiveToolsToolViewportPlanner * | ViewportPlanner | ||
| TSubclassOf< UAvaInteractiveToolsToolViewportPlanner > | ViewportPlannerClass |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Activate
(
bool bInReactivate |
||
| void | |||
| bool | CanActivate
(
bool bInReactivate |
||
| FInputRayHit | CanBeginSingleClickAndDragSequence
(
const FInputDeviceRay& InPressPos |
||
| void | |||
| bool | |||
| InActorFactoryClass * | Helper to create an Actor Factory of a given class | ||
| void | Creates a default actor in the world, without user input. | ||
| void | |||
| FName | Designed to be called on the CDO. | ||
| UObject * | GetDetailsObjectFromActor
(
AActor* InActor |
Checks the given actor and its components against UAvaInteractiveToolsModeDetailsObject and UAvaInteractiveToolsModeDetailsObjectProvider. | |
| AActor * | |||
| FAvaInteractiveToolsToolParameters | Designed to be called on the CDO. | ||
| FViewport * | GetViewport
(
EAvaViewportStatus InViewportStatus |
||
| FInputRayHit | IsHitByClick
(
const FInputDeviceRay& InClickPos |
||
| bool | |||
| void | OnActivate () |
Called when the tool is selected in the InteractiveTools tab. | |
| bool | OnBegin () |
Returns false if tool fails to initialise. | |
| void | OnCancel () |
Cancels the tool and shuts it down. | |
| void | OnClickDrag
(
const FInputDeviceRay& InDragPos |
||
| void | OnClicked
(
const FInputDeviceRay& InClickPos |
||
| void | OnClickPress
(
const FInputDeviceRay& InPressPos |
||
| void | OnClickRelease
(
const FInputDeviceRay& InReleasePos, |
||
| void | OnComplete () |
Completes the tool and shuts it down. | |
| void | OnDragStart
(
const FInputDeviceRay& InDragPos |
||
| void | OnPostBegin () |
Called if Begin() is successful. | |
| void | OnPresetSelected
(
TStrongObjectPtr< UAvaInteractiveToolsToolBase > InToolPtr, |
||
| void | |||
| void | OnUpdateModifierState
(
int InModifierID, |
||
| void | |||
| void | |||
| void | |||
| void | RequestShutdown
(
EToolShutdownType InShutdownType |
||
| void | SetToolkitSettingsObject
(
UObject* InObject |
||
| bool | |||
| bool | |||
| void | |||
| AActor * | SpawnActor
(
TSubclassOf< AActor > InActorClass, |
Calls the other spawn actor with the centre of the last active viewport as the position. | |
| AActor * | SpawnActor
(
TSubclassOf< AActor > InActorClass, |
Spawns an actor of the given class at the correct distance from the camera in the given viewport position. | |
| bool | Returns true if this supports a default action. | ||
| bool | Returns true if actors should be spawned at {0, 0, 0}. | ||
| bool | Returns true if actors should be spawned oriented to {0, 0, 0}. | ||
| bool | ViewportPositionToWorldPositionAndOrientation
(
EAvaViewportStatus InViewportStatus, |
Calls the below function with the default camera distance. | |
| bool | ViewportPositionToWorldPositionAndOrientation
(
EAvaViewportStatus InViewportStatus, |
Converts viewport position to camera plane transform at given distance. |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| void | DrawHUD
(
FCanvas* InCanvas, |
Allow the Tool to do any custom screen space drawing | |
| void | OnTick
(
float InDeltaTime |
Allow the Tool to do any necessary processing on Tick | |
| void | Render
(
IToolsContextRenderAPI* InRenderAPI |
Allow the Tool to do any custom drawing (ie via PDI/RHI) | |
| void | Setup () |
Called by ToolManager to initialize the Tool after ToolBuilder::BuildTool() has been called | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Constants
| Name | Description |
|---|---|
| BID_Cancel | Cancel Behavior ID |