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

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.

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/EngineTypes.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback