Interaction target component:UUltimateInteractionComponent
Please add to the player controller under PlayerController
Used to select the target for current interaction and store default and currently interactive commands
This component is a client specific component and will not be called by the server
Variable/Function | Explain |
---|---|
TraceIntervalSecond(Setting) | The inspection interval should not be too fast, otherwise it may get stuck |
Commands | All interactive commands currently available to the target, UI usage |
DefaultCommand | Default interaction command for quick interaction with E key |
bCommandValid | Is the current command empty or has no target |
CameraTraceDistance(Setting) | Camera inspection distance |
MaxCommandDistance(Setting) | Maximum Command Query Distance |
TargetActor | Target Actor |
OnTargetRemoved(Override) | Called when the target disappears, note: not destroyed by the target |
OnTargetChanged(Override) | Called during target switching, note: not target destruction |
UseCommandTrace | Target selector specific implementation function |