ESpawnActorCollisionHandlingMethod

Defines available strategies for handling the case where an actor is spawned in such a way that it penetrates blocking collision.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

enum ESpawnActorCollisionHandlingMethod
{
    Undefined,
    AlwaysSpawn,
    AdjustIfPossibleButAlwaysSpawn,
    AdjustIfPossibleButDontSpawnIfColliding,
    DontSpawnIfColliding,
}

Values

Name

Description

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.

Remarks

Defines available strategies for handling the case where an actor is spawned in such a way that it penetrates blocking collision.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss