Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule > API/Plugins/SmartObjectsModule/USmartObjectSubsystem
Description
Validates entrance locations for a specific slot. Each slot can be annotated with multiple entrance locations, and the request can be configured to also consider the slot location as one entry. Additionally the entrance locations can be checked to be on navigable surface (does not check that the point is reachable, though), traced on ground, and without of collisions.
| Name | QueryValidatedSlotEntranceLocationsInternal |
| Type | function |
| Header File | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectSubsystem.h |
| Include Path | #include "SmartObjectSubsystem.h" |
| Source | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Private/SmartObjectSubsystem.cpp |
static void QueryValidatedSlotEntranceLocationsInternal
(
const UWorld * World,
FSmartObjectValidationContext & ValidationContext,
const FSmartObjectSlotEntranceLocationRequest & Request,
const FSmartObjectSlotHandle & SlotHandle,
const FSmartObjectSlotDefinition & SlotDefinition,
const FTransform & SlotTransform,
const FSmartObjectSlotEntranceHandle & SlotEntranceHandle,
TFunctionRef < bool &)> ResultFunc
)
Parameters
| Name | Remarks |
|---|---|
| World | World to use for validation tracing. |
| ValidationContext | Valid validation context. |
| Request | Request describing how to validate the entries. |
| SlotHandle | Handle to the smart object slot (will be passed into the result). |
| SlotDefinition | Smart object slot definition to use for validation. |
| SlotTransform | Transform of the slot. |
| SlotEntranceHandle | Handle to specific entrance if just one entrance should be checked. (Optional) |
| ResultFunc | Callback called on each result |