Skip to content

IAndromedaFocusCandidateProviderInterface

Kind: class Source: Source/Andromeda/Capabilities/AndromedaFocusCandidateProviderInterface.h

Public Static Methods

Member Type Summary
IsFocusCandidateProvider bool Returns whether an object implements explicit focus candidate routing.

Public Methods

Member Type Summary
GetFocusCandidate UObject * Returns the object that should receive focus for a trace hit on this provider.

Members

IsFocusCandidateProvider

static bool IAndromedaFocusCandidateProviderInterface::IsFocusCandidateProvider(const UObject *Object)

Returns whether an object implements explicit focus candidate routing.

Parameters:

Name Type Description
Object const UObject * Object to inspect.

Returns:

True when Object is non-null and implements UAndromedaFocusCandidateProviderInterface.

GetFocusCandidate

UObject * IAndromedaFocusCandidateProviderInterface::GetFocusCandidate(APawn *ViewingPawn, const FHitResult &Hit) const

Returns the object that should receive focus for a trace hit on this provider.

Use this when collision ownership and capability ownership are not the same objectAAndromedaCharacter. validates returned objects against prompt, pickup, or interaction availability before accepting focus.

Parameters:

Name Type Description
ViewingPawn APawn * Pawn whose camera trace produced Hit.
Hit const FHitResult & Trace result on this provider.

Returns:

Object that should become focused, or nullptr when the hit should not focus anything.