Navigation
API > API/Runtime > API/Runtime/Engine
Defines available strategies for handling the case where an actor is spawned in such a way that it penetrates blocking collision.
| Name | ESpawnActorCollisionHandlingMethod |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
enum ESpawnActorCollisionHandlingMethod
{
Undefined,
AlwaysSpawn,
AdjustIfPossibleButAlwaysSpawn,
AdjustIfPossibleButDontSpawnIfColliding,
DontSpawnIfColliding,
}
Values
| Name | Remarks |
|---|---|
| Undefined | Fall back to default settings. |
| AlwaysSpawn | Actor will spawn in desired location, regardless of collisions. |
| AdjustIfPossibleButAlwaysSpawn | Actor will try to find a nearby non-colliding location (based on shape components), but will always spawn even if one cannot be found. |
| AdjustIfPossibleButDontSpawnIfColliding | Actor will try to find a nearby non-colliding location (based on shape components), but will NOT spawn unless one is found. |
| DontSpawnIfColliding | Actor will fail to spawn. |